aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random/templates/article.html
diff options
context:
space:
mode:
Diffstat (limited to 'dev-random/templates/article.html')
-rw-r--r--dev-random/templates/article.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-random/templates/article.html b/dev-random/templates/article.html
index ab5679c..4bd02f5 100644
--- a/dev-random/templates/article.html
+++ b/dev-random/templates/article.html
@@ -1,3 +1,4 @@
+{%- if article.lang %}{% set DEFAULT_LANG = article.lang %}{% endif -%}
{% extends "base.html" %}
{% block headers %}
@@ -24,6 +25,13 @@
<div class="meta">
Dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>»
par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a>
+ {% if article.translations %}
+ &nbsp;&nbsp; Langues:
+ <a href="{{ SITEURL }}/{{ article.url }}">{{ article.lang or DEFAULT_LANG }}</a>
+ {% for translation in article.translations %}
+ <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+ {% endfor %}
+ {% endif %}
</div>
</header>
<div class="post-content">