Skip to content

Commit

Permalink
tpl/embedded: Make Open Graph's series optional
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 6, 2022
1 parent c9f2fa2 commit b82b547
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tpl/tplimpl/embedded/templates/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b82b547

Please sign in to comment.