summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl
diff options
context:
space:
mode:
authorRazon Yang <razonyang@gmail.com>2022-12-06 17:48:34 +0800
committerGitHub <noreply@github.com>2022-12-06 10:48:34 +0100
commitb82b547acb404cdb883154cc4991137d46caa22a (patch)
tree8677f8d06df61c2b0a4d5fac7d4f2d5d4ea38eae /tpl/tplimpl
parentc9f2fa266325f3fecaa2dafaa7fe8607b487bae1 (diff)
tpl/embedded: Make Open Graph's series optional
Diffstat (limited to 'tpl/tplimpl')
-rw-r--r--tpl/tplimpl/embedded/templates/opengraph.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html
index e3961524b..a9d4dd83c 100644
--- a/tpl/tplimpl/embedded/templates/opengraph.html
+++ b/tpl/tplimpl/embedded/templates/opengraph.html
@@ -33,12 +33,14 @@
{{- /* If it is part of a series, link to related articles */}}
{{- $permalink := .Permalink }}
{{- $siteSeries := .Site.Taxonomies.series }}
+{{- if $siteSeries }}
{{ with .Params.series }}{{- range $name := . }}
{{- $series := index $siteSeries ($name | urlize) }}
{{- range $page := first 6 $series.Pages }}
{{- if ne $page.Permalink $permalink }}<meta property="og:see_also" content="{{ $page.Permalink }}" />{{ end }}
{{- end }}
{{ end }}{{ end }}
+{{- end }}
{{- /* Facebook Page Admin ID for Domain Insights */}}
{{- with .Site.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}