Add link to article translations in index and article template

This commit is contained in:
FELD Boris
2011-04-08 13:41:44 +02:00
parent d5a2b51f9a
commit 3e04e093dd
3 changed files with 18 additions and 10 deletions

View File

@@ -18,6 +18,7 @@
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>.
{% include 'taglist.html' %}
{% include 'translations.html' %}
</footer><!-- /.post-info -->
{{ article.content }}
</div><!-- /.entry-content -->

View File

@@ -20,6 +20,7 @@
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
{% include 'taglist.html' %}
{% include 'translations.html' %}
</footer><!-- /.post-info -->
{{ article.content }}
</article></aside><!-- /#featured -->

View File

@@ -0,0 +1,6 @@
{% if article.translations %}
Translations:
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}