Skip to content

Commit

Permalink
feat(opengraph): new fediverse:creator meta...
Browse files Browse the repository at this point in the history
... based on the fediverseCreator param of the post defaulting on the site.
  • Loading branch information
David-Guillot committed Nov 8, 2024
1 parent aebcc92 commit 76cc50b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/templates/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<meta property="og:video" content="{{ . | absURL }}">
{{ end }}{{ end }}

{{- if or .Params.fediverseCreator site.Params.fediverseCreator }}
<meta name="fediverse:creator" content="{{ .Params.fediverseCreator | default site.Params.fediverseCreator }}" />
{{- end -}}

{{- /* If it is part of a series, link to related articles */}}
{{- $permalink := .Permalink }}
{{- $siteSeries := site.Taxonomies.series }}
Expand Down

0 comments on commit 76cc50b

Please sign in to comment.