summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2021-09-14 00:13:31 +0200
committerVincent Douillet <vincent@vdouillet.fr>2021-09-14 00:13:31 +0200
commited2f03c59d650e7fd00f081d7991b374d91b7aa6 (patch)
treeeb67b18dcad82dddf2a2c17780a07b463ae97529 /templates
parent71b1d8b8713790971881e0076f90d5f743797ec7 (diff)
Handle translations and additional menu items
Diffstat (limited to 'templates')
-rw-r--r--templates/article.html2
-rw-r--r--templates/base.html6
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/article.html b/templates/article.html
index fba7058..99db2b5 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -27,8 +27,10 @@
<h2 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
+ <div class="translations">
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
+ </div>
</header>
<footer class="post-info">
Posted on
diff --git a/templates/base.html b/templates/base.html
index bc7556f..4556741 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -38,14 +38,14 @@
<h2 id="sitesubtitle">{{ SITESUBTITLE }}</h2>
</header><!-- /#banner -->
<nav id="menu"><ul>
- {% for title, link in MENUITEMS %}
- <li><a href="{{ link }}">{{ title }}</a></li>
- {% endfor %}
{% 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 %}
+ {% for title, link in MENUITEMS %}
+ <li><a 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>