Skip to content

Commit 7713f1c

Browse files
authored
Merge pull request #22440 from sftim/20200709_link_to_alternative_translations
Add machine-readable hyperlinks to alternative translations
2 parents 9f1676e + b59f68e commit 7713f1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

layouts/partials/head.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
gtag('config', 'UA-36037335-10');
1111
</script>
1212

13-
<!-- Docsy head.html begins here -->
13+
<!-- alternative translations -->
14+
{{ range .Translations -}}
15+
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}">
16+
{{ end -}}
1417

18+
<!-- Docsy head.html begins here -->
1519
<meta charset="utf-8">
1620
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
1721
{{ hugo.Generator }}

0 commit comments

Comments
 (0)