aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorAhmed M Alaa <aa@4b.cx>2022-12-05 14:48:27 +0200
committerAhmed M Alaa <aa@4b.cx>2022-12-05 14:48:27 +0200
commit7daa254c0b2be4055a40ef320f44e7d066dca753 (patch)
treea1e5998194299808803a8812d7fe283a0fae0e75 /templates/base.html
parent2d7be35ef50d37f5057248d20cbeb1f06fd5cde0 (diff)
added: default taxonomies templates, custom nav links
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index e00a202..9e3965f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -95,6 +95,13 @@
<body theme="auto">
<div class="w">
<header>
+ {% if config.extra.header_nav %}
+ <nav>
+ {% for nav_item in config.extra.header_nav %}
+ <a href="{{ nav_item.url | safe }}">{{ nav_item.name }}</a>
+ {% endfor %}
+ </nav>
+ {% endif %}
{% block header %}{% if title %}<h1>{{ config.title }}</h1>{% endif %}{% endblock header %}
</header>
<main class="page-content" aria-label="Content">
@@ -102,6 +109,13 @@
</main>
<footer>
{% block footer %}{% endblock footer %}
+ {% if config.extra.footer_nav %}
+ <nav>
+ {% for nav_item in config.extra.footer_nav %}
+ <a href="{{ nav_item.url | safe }}">{{ nav_item.name }}</a>
+ {% endfor %}
+ </nav>
+ {% endif %}
</footer>
</div>
</body>