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

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarin Pope <darin@planetpope.com>2020-08-17 00:04:15 +0300
committerGitHub <noreply@github.com>2020-08-17 00:04:15 +0300
commit5154bf8550f9842e1b902778f2b313d2c0f37c64 (patch)
tree570e443dff388e35bc56d5e42f8fcfc4f69a6746 /layouts/partials
parent008c51a6d3bf6ba281379109cd36c0958d23eac9 (diff)
og:type should be article if an episode (#285)
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/seo.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/partials/seo.html b/layouts/partials/seo.html
index 053f77e..7c17bc4 100644
--- a/layouts/partials/seo.html
+++ b/layouts/partials/seo.html
@@ -28,8 +28,13 @@
{{ with .Site.Params.social.twitter }}<meta name="twitter:site" content="@{{ . }}"/>{{ end }}
{{ with .Site.Params.social.twitter }}<meta name="twitter:creator" content="@{{ . }}"/>{{ end }}
{{ with .Site.Params.social.twitter_domain }}<meta name="twitter:domain" content="{{ . }}"/>{{ end }}
-<meta property="og:type" content="{{ if .Params.type }}{{ .Params.type }}{{ else }}website{{ end }}" />
-
+{{ if eq .Type "episode" }}
+<meta property="og:type" content="article" />
+{{- else if .Params.type -}}
+<meta property="og:type" content="{{ .Params.type }}" />
+{{- else -}}
+<meta property="og:type" content="website" />
+{{ end }}
<meta property="og:url" content="{{ .Permalink | relURL }}" />
{{ with .Params.images }}{{ range first 1 . }}