forked from github/pelican
This adds the lstrip_blocks Jinja parameter and removes unnecessary whitespace from a few notmyidea templates. Note: The lstrip_blocks parameter requires Jinja 2.7+, which has been noted in Pelican's setup.py. Credit for this commit goes entirely to Russ Webber, who has earned my eternal thanks for discovering and applying this useful Jinja parameter. Refs #969
8 lines
257 B
HTML
8 lines
257 B
HTML
{% macro translations_for(article) %}
|
|
{% if article.translations %}
|
|
Translations:
|
|
{% for translation in article.translations %}
|
|
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endmacro %}
|