Skip to content

Commit a43edcb

Browse files
committed
fix: Use https prototcol for share image
1 parent 793f4c3 commit a43edcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hugo-modules/core/utils/seo/private/get-data.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,22 @@
133133
{{ $img := false }}
134134

135135
{{ with $settings.default_share_image }}
136-
{{ $img = .url }}
136+
{{ $img = partial "utils/get-abs-url.html" .url }}
137137
{{ end }}
138138

139139
{{ with $seo_params.share_image }}
140-
{{ $img = .url }}
140+
{{ $img = partial "utils/get-abs-url.html" .url }}
141141
{{ else }}
142142
{{/* If no SEO IMAGE is set, we look for the .Params.images slice
143143
and use the first one if it has an `image` key */}}
144144
{{ with .Params.images }}
145145
{{ with index . 0 }}
146146
{{ if reflect.IsMap . }}
147147
{{ with .image }}
148-
{{ $img = .url }}
148+
{{ $img = partial "utils/get-abs-url.html" .url }}
149149
{{ end }}
150150
{{ else }}
151-
{{ $img = .url }}
151+
{{ $img = partial "utils/get-abs-url.html" .url }}
152152
{{ end }}
153153
{{ end }}
154154
{{ end }}

0 commit comments

Comments
 (0)