mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Don't escape permalink; emit less newlines
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user