diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 58f4bcc..8080fbd 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -15,7 +15,13 @@ - {# TODO add link rel="alternate" for langs #} + {%- set alternateUrls = page.url | locale_links %} + {% if alternateUrls.length %} + + {%- for link in alternateUrls %} + + {%- endfor %} + {%- endif %}
diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 34d0887..81c4f46 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -18,10 +18,11 @@ templateClass: tmpl-post {% if i18nLinks.length %} {% endif %}