mirror of
https://github.com/arsenetar/pelican-red.git
synced 2024-11-23 03:39:03 +00:00
11 lines
287 B
HTML
11 lines
287 B
HTML
|
{% macro translations_for(article) %}
|
||
|
{% if article.translations %}
|
||
|
<li>Translations:
|
||
|
{% for translation in article.translations %}
|
||
|
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
|
||
|
{% if not loop.last %},{% endif %}
|
||
|
{% endfor %}
|
||
|
</li>
|
||
|
{% endif %}
|
||
|
{% endmacro %}
|