Skip to content

Commit 2d9ed30

Browse files
fix <link rel="alternate" hreflang="..."
* Each version of a page must link to all other versions, *including itself* * href must be absolute
1 parent 3bd3556 commit 2d9ed30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/_default/baseof.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}" media="screen" />
6868
{{ end }}
6969
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="{{ .Site.LanguagePrefix }}/feed.xml" />
70-
{{ range .Translations }}
71-
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .RelPermalink }}" />
70+
{{ range .AllTranslations }}
71+
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" />
7272
{{ end }}
7373
</head>
7474
<body x-data="{ isNavOpen: false, globalData: { githubStargazers: null } }" x-init="determineGitHubStargazersCount('{{ .Site.Language.Lang }}', globalData)" :class="isNavOpen && 'overflow-hidden'" class="bg-dark font-body text-gray-900">

0 commit comments

Comments
 (0)