File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
hugo-modules/core/utils/seo/private Expand file tree Collapse file tree 1 file changed +10
-8
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 }}
40
38
{{ end }}
41
39
42
40
{{ with $seo.locale }}
43
- {{ $c := dict "key" "locale" "value" .}}
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
47
49
{{ with $seo.translations }}
48
50
{{ range . }}
49
- {{ $attr := dict "rel" "alternate" "href" .permalink "hreflang" .code }}
50
- {{ $c := dict "name" "link" "attr" $attr }}
51
- {{ $tags = $tags | append $c }}
51
+ {{ $attr := dict "rel" "alternate" "href" .permalink "hreflang" .code }}
52
+ {{ $c := dict "name" "link" "attr" $attr }}
53
+ {{ $tags = $tags | append $c }}
52
54
53
- {{ $c2 := dict "key" "locale:alternate" "value" .code}}
54
- {{ $tags = $tags | append (partialCached "utils/seo/tag/og" $c2 $c2) }}
55
+ {{ $c2 := dict "key" "locale:alternate" "value" .code }}
56
+ {{ $tags = $tags | append (partialCached "utils/seo/tag/og" $c2 $c2) }}
55
57
{{ end }}
56
58
{{ end }}
57
59
You can’t perform that action at this time.
0 commit comments