mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-17 08:34:25 -04:00
head: add alternate pages
to indicate multiple language/locale versions for multilungual sites
This commit is contained in:
parent
b22520630d
commit
d2f2fa6cc6
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@
|
||||||
{{- range .AlternativeOutputFormats -}}
|
{{- range .AlternativeOutputFormats -}}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
{{- range .Translations -}}
|
||||||
|
<link rel="alternate" hreflang="{{- .Lang -}}" href="{{- .Permalink -}}" />
|
||||||
|
{{ end }}
|
||||||
{{- partial "extend_head.html" . -}}
|
{{- partial "extend_head.html" . -}}
|
||||||
<!-- Misc -->
|
<!-- Misc -->
|
||||||
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue