Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Commit 5ce737f

Browse files
tommorrislunny
authored andcommitted
Adds hreflang attribute to language version links (#72)
This helps search engines and other user agents to find different versions of the page.
1 parent 333dfb1 commit 5ce737f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</p>
1010
<p>
1111
{{ $lang := .Lang }}{{ $base := .Site.BaseURL }}{{ range .Site.Languages }}
12-
<a class="nav-link" href="{{ $base }}{{ .Lang }}">{{ .LanguageName }}</a>
12+
<a class="nav-link" href="{{ $base }}{{ .Lang }}" hreflang="{{ .Lang }}">{{ .LanguageName }}</a>
1313
{{ end }}
1414
</p>
1515
</div>

0 commit comments

Comments
 (0)