File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
hugo-modules/core/utils/seo/private Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 15
15
16
16
{{ $seo := partial "utils/seo/private/get-data" $ }}
17
17
18
-
19
-
20
18
{{ $tags := slice }}
21
19
{{ with $seo.title }}
22
20
{{ if not $config.disable_title_tag }}
42
40
{{ with $seo.locale }}
43
41
{{ $c := dict "key" "locale" "value" .}}
44
42
{{ $tags = $tags | append (partialCached "utils/seo/tag/og" $c $c) }}
43
+
44
+ {{ $attr := dict "rel" "alternate" "href" $.Permalink "hreflang" . }}
45
+ {{ $c2 := dict "name" "link" "attr" $attr }}
46
+ {{ $tags = $tags | append $c2 }}
45
47
{{ end }}
46
48
49
+ {{ warnf $.Permalink }}
50
+
47
51
{{ with $seo.translations }}
48
52
{{ range . }}
49
- {{ $attr := dict "rel" "alternate" "href" .permalink "hreflang" .code }}
50
- {{ $c := dict "name" "link" "attr" $attr }}
51
- {{ $tags = $tags | append $c }}
53
+ {{ $attr := dict "rel" "alternate" "href" .permalink "hreflang" .code }}
54
+ {{ $c := dict "name" "link" "attr" $attr }}
55
+ {{ $tags = $tags | append $c }}
52
56
53
- {{ $c2 := dict "key" "locale:alternate" "value" .code}}
54
- {{ $tags = $tags | append (partialCached "utils/seo/tag/og" $c2 $c2) }}
57
+ {{ $c2 := dict "key" "locale:alternate" "value" .code}}
58
+ {{ $tags = $tags | append (partialCached "utils/seo/tag/og" $c2 $c2) }}
55
59
{{ end }}
56
60
{{ end }}
57
61
You can’t perform that action at this time.
0 commit comments