[IMP] _extension: add languages link

To refer the pages in different languages for better indexing
This commit is contained in:
Martin Trigaux
2019-12-10 14:44:57 +01:00
parent 6558c373c7
commit 1f51fda2e8
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -18,6 +18,13 @@
{{ super() }}
{%- endblock -%}
{%- block linktags -%}
{% for code, url in language_codes %}
<link rel="alternate" hreflang="{{ code }}" href="{{ url }}" />
{%- endfor %}
{{ super() }}
{%- endblock -%}
{%- block sidebar1 -%}{%- endblock -%}
{%- block sidebar2 -%}{%- endblock -%}
{%- block relbar1 -%}{%- endblock -%}