Skip to content

Commit

Permalink
Merge pull request #74 from teamdigitale/31-hreflang
Browse files Browse the repository at this point in the history
Fixes #31, aggiunge hreflang links
  • Loading branch information
cloudify committed Feb 23, 2017
2 parents 4f09b36 + 1731bac commit bc08a08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _includes/layout_base.html
Expand Up @@ -22,6 +22,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ site.title[page.lang] }} - {{ page.title }}</title>

{% for other_lang_page in site.pages %}
{% if other_lang_page.ref == page.ref and other_lang_page.lang != page.lang %}
<link rel="alternate" hreflang="{{ other_lang_page.lang }}" href="{{ other_lang_page.url }}" />
{% endif %}
{% endfor %}

<!-- for Google -->
<meta name="description" content="{{ site.description[page.lang] }}">
Expand Down

0 comments on commit bc08a08

Please sign in to comment.