diff options
| author | Coderslang Master <vasyl.lagutin@agilenix.com> | 2021-01-29 19:55:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-29 23:25:07 +0530 |
| commit | 84e208f98d6ff664da5550283e900df2b3144be5 (patch) | |
| tree | 6bd4cb7e35154a9713e309dbbe96f1f26dc0a8eb | |
| parent | 778ee39137dc69e8761c73af7a731ffc51854397 (diff) | |
Fix missing reciprocal and self-reference hreflang (#211)
ref:
- https://help.ahrefs.com/en/articles/2631143-missing-reciprocal-hreflang-no-return-tag-error-in-site-audit
- https://help.ahrefs.com/en/articles/2754344-what-does-the-self-referencing-hreflang-annotation-missing-issue-in-site-audit-mean
| -rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e733908..5ba46fe 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -71,7 +71,7 @@ {{- range .AlternativeOutputFormats -}} <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> {{ end -}} -{{- range .Translations -}} +{{- range .AllTranslations -}} <link rel="alternate" hreflang="{{- .Lang -}}" href="{{- .Permalink -}}" /> {{ end }} {{- partial "extend_head.html" . -}} |
