Skip to content

Commit 8adb786

Browse files
committed
Add meta[name=alternate] to declare languages
1 parent 4c2b0d9 commit 8adb786

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_includes/header.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414

1515
<title>{{ page.title }} | WP-CLI</title>
1616
<meta name="description" content="{{ page.description }}">
17+
18+
{% for lang in site.languages %}<link rel="alternate" hreflang="{{lang.iso-alpha2}}" href="{{site.url}}{{lang.path}}" />
19+
{% endfor %}
1720
</head>
1821

1922
{% if page.display_global_parameters %}
2023
<body class="display-global-parameters">
2124
{% else %}
2225
<body>
2326
{% endif %}
24-
2527
<header class="cf">
2628
<div class="container">
2729
<h1><a href="/">WP-CLI</a></h1>
@@ -33,7 +35,7 @@ <h2>A command line interface for WordPress</h2>
3335
{% endif %}
3436

3537
{% include navigation.html %}
36-
{% include languages.html %}
38+
{% include languages.html %}
3739
</div>
3840
</header>
3941

0 commit comments

Comments
 (0)