mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-11-22 12:39:04 +00:00
[PATCH] tpl/tplimpl: Improve locale value in opengraph.html
from https://github.com/gohugoio/hugo/commit/87ab7f7ffce82f1c7a264f1f7daa97f13dc77fde
This commit is contained in:
1 parent
da89fed021
commit
59984fa98f
1 file changed
+2
-2
@@ -12,8 +12,8 @@
|
||||
<meta property="og:description" content="{{ . }}">
|
||||
{{- end }}
|
||||
|
||||
{{- with or .Params.locale site.Language.LanguageCode site.Language.Lang }}
|
||||
<meta property="og:locale" content="{{ . }}">
|
||||
{{- with or .Params.locale site.Language.LanguageCode }}
|
||||
<meta property="og:locale" content="{{ replace . `-` `_` }}">
|
||||
{{- end }}
|
||||
|
||||
{{- if .IsPage }}
|
||||
|
||||
Reference in new issue
Block a user