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:
Jack Taylor 2017-04-28 22:44:54 +09:00
parent 9c165c43d8
commit 49cb655cd6

View File

@ -30,7 +30,7 @@
{{- with .Site.Params.fb_app_id }}
<meta property="fb:app_id" content="{{ . }}" />
{{- end }}
<meta property="og:url" content="{{ .URL | absURL }}" />
<meta property="og:url" content="{{ .URL | absLangURL }}" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<!-- Hugo Version number -->