Don't escape permalink; emit less newlines

This commit is contained in:
Philipp Oppermann
2020-02-17 15:07:43 +01:00
parent cc27cf5c24
commit 0195d2ec43

View File

@@ -94,9 +94,9 @@
<div class="block hidden" id="language-selector">
<h2>Other Languages</h2>
<ul>
{% for translation in page.translations %}
<li data-lang-switch-to="{{ translation.lang }}" class="hidden"><a href="{{ translation.permalink }}">{{ translation.lang }} {% if translation.lang == "en" %}(original){% endif %}</a></li>
{% endfor %}
{%- for translation in page.translations %}
<li data-lang-switch-to="{{ translation.lang }}" class="hidden"><a href="{{ translation.permalink | safe }}">{{ translation.lang }} {% if translation.lang == "en" %}(original){% endif %}</a></li>
{%- endfor %}
</ul>
</div>
{%- endif %}