« get me outta code hell

base.html « templates « neb « theme - wiki-blog - Unnamed repository; edit this file 'description' to name the repository.
summary refs log tree commit diff
path: root/theme/neb/templates/base.html
blob: 53350ef6ad11b2b6efc73dee7ac1fd45730c1cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
  <head>
    {% block head %}
      <meta charset="utf-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <meta name="generator" content="Pelican" />
      <title>{% block title %}{{ SITENAME|striptags }}{%endblock%}</title>
      <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/neb-style.css" />
      {% if FEED_ALL_ATOM %}
        <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags }} Atom Feed" />
      {% endif %}
      {% if FEED_ALL_RSS %}
        <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME|striptags }} RSS Feed" />
      {% endif %}
      {% block extra_head %}{% endblock extra_head %}
    {% endblock head %}
  </head>

  <body id="index" class="home">
    <header id="banner" class="body">
      <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
      <nav><ul>
        {% for title, link in MENUITEMS %}
          <li><a href="{{ link }}">{{ title }}</a></li>
        {% endfor %}

        {% if DISPLAY_PAGES_ON_MENU -%}
          {% for pg in pages %}
            <li{% if pg == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a></li>
          {% endfor %}
        {% endif %}

        {% if DISPLAY_CATEGORIES_ON_MENU -%}
          {% for cat, null in categories %}
            <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
          {% endfor %}
        {% endif %}

        {% if FEED_ALL_ATOM %}
          <li class="right" style="--color: #ef5226"><a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate">atom</a></li>
        {% endif %}

        {% if FEED_ALL_RSS %}
          <li class="right" style="--color: #ef5226"><a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate">rss</a></li>
        {% endif %}
      </ul></nav>
    </header>

    <main id="top">
      {% block content %}
      {% endblock %}
    </main>

    <footer id="contentinfo" class="body">
      <p>Proudly powered by <a rel="nofollow" href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a rel="nofollow" href="https://www.python.org/">Python</a>.<br>
      Various background tiles from <a href="https://background-tiles.com/">background-tiles.com</a>.</p>
    </footer>
  </body>
</html>