Fix og:url meta tag for multilingual sites
We need to use absLangURL instead of absURL, otherwise we generate URLs that are wrong or don't exist for pages which aren't in the default language.
This commit is contained in:
parent
9c165c43d8
commit
49cb655cd6
@ -30,7 +30,7 @@
|
|||||||
{{- with .Site.Params.fb_app_id }}
|
{{- with .Site.Params.fb_app_id }}
|
||||||
<meta property="fb:app_id" content="{{ . }}" />
|
<meta property="fb:app_id" content="{{ . }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<meta property="og:url" content="{{ .URL | absURL }}" />
|
<meta property="og:url" content="{{ .URL | absLangURL }}" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||||
<!-- Hugo Version number -->
|
<!-- Hugo Version number -->
|
||||||
|
Loading…
Reference in New Issue
Block a user