Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/carsonip/hugo-theme-minos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv1ne <v1ne2go@gmail.com>2019-11-20 00:05:50 +0300
committerCarson Ip <carsonip@users.noreply.github.com>2019-11-29 18:04:51 +0300
commitb87555512af1c6f2d29f937873451b0ac2c6d38a (patch)
tree9798f78fd80308afda5820c9db7bbf77fbc78538
parenta6c2a347f5cafc95b0f09e2926793864cd49a2c7 (diff)
Open Graph: Honour site language
-rw-r--r--layouts/partials/og.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/og.html b/layouts/partials/og.html
index 077740a..95fef9c 100644
--- a/layouts/partials/og.html
+++ b/layouts/partials/og.html
@@ -1,7 +1,7 @@
<meta property="og:title" content="{{ if .Params.ogtitle }}{{ .Params.ogtitle }}{{ else }}{{ .Title }}{{ end }}" />
<meta property="og:description" content="{{ if .Params.ogdescription }}{{ .Params.ogdescription }}{{ else }}{{ .Site.Params.Description }}{{ end }}" />
<meta property="og:type" content="website" />
- <meta property="og:locale" content="en_US" />
+ <meta property="og:locale" content="{{ .Lang }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ if .Params.ogimage }}
<meta property="og:image" content="{{ .Params.ogimage }}" />