fix canonical meta header
parent
678c7c235c
commit
3285b75866
|
@ -13,10 +13,13 @@
|
|||
{{- with .Description | default (cond .IsPage .Summary .Site.Params.description) }}
|
||||
<meta name="description" content="{{ . }}">
|
||||
{{- end }}
|
||||
{{- range $index, $page := .AllTranslations }}
|
||||
{{- if eq $index 0 }}
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{- range .Translations }}
|
||||
{{- else }}
|
||||
<link rel="alternate" href="{{ .Permalink }}" hreflang="{{ .Language }}">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- range .AlternativeOutputFormats }}
|
||||
<link rel="{{ .Rel }}" href="{{ .Permalink }}" type="{{ .MediaType.Type }}">
|
||||
{{- end }}
|
Loading…
Reference in New Issue