~allie/website-2020 unlisted

fb4041f5db962b2d7fc70611dcbbc4de9523d5e7 — Alfie Pates 11 months ago bb05f2d
add navbar
3 files changed, 12 insertions(+), 5 deletions(-)

M theme/static/style.css
M theme/templates/base.html
M theme/templates/page.html
M theme/static/style.css => theme/static/style.css +5 -0
@@ 5,6 5,11 @@
	line-height 1.6em; 
}

#menu {
	margin: auto;
	max-width: 768px;
}

#content {
	margin: 0 auto;
	padding: 0 2em;

M theme/templates/base.html => theme/templates/base.html +5 -5
@@ 42,21 42,21 @@
        <header id="banner" class="body">
                <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
        </header><!-- /#banner -->
        <nav id="menu"><ul>
	<nav id="menu" class="pure-menu-horizontal pure-menu-scrollable"><ul class="pure-menu-list">
        {% for title, link in MENUITEMS %}
            <li><a href="{{ link }}">{{ title }}</a></li>
            <li class="pure-menu-item"><a class="pure-menu-link" href="{{ link }}">{{ title }}</a></li>
        {% endfor %}
        {% if DISPLAY_PAGES_ON_MENU %}
          {% for p in pages %}
            <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
            <li class="pure-menu-item{% if p == page %} pure-menu-selected{% endif %}"><a class="pure-menu-link" href="{{ SITEURL }}/{{ p.url }}">{{ p.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>
            <li class="pure-menu-item{% if cat == category %} pure-menu-selected{% endif %}"><a class="pure-menu-link" href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
          {% endfor %}
        {% endif %}
        </ul></nav><!-- /#menu -->
	</ul></nav><!-- /#menu -->
        {% block content %}
        {% endblock %}
        <footer id="contentinfo" class="body">

M theme/templates/page.html => theme/templates/page.html +2 -0
@@ 13,6 13,7 @@
{% endblock %}

{% block content %}
  <section id="content">
    <h1>{{ page.title }}</h1>
    {% import 'translations.html' as translations with context %}
    {{ translations.translations_for(page) }}


@@ 24,4 25,5 @@
        Last updated: {{ page.locale_modified }}
        </p>
    {% endif %}
  </section>
{% endblock %}