Skip to content

Commit

Permalink
Add fediverse:creator tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed May 29, 2024
1 parent e14383f commit 6b4a48a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions data/authors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ gargron:
name: Eugen Rochko
title: CEO / Founder
image: authors/eugen-rochko.jpg
webfinger: Gargron@mastodon.social
social:
mastodon: https://mastodon.social/@Gargron

Expand All @@ -18,19 +19,22 @@ felix:
name: Felix Hlatky
title: CFO
image: authors/felix-hlatky.jpg
webfinger: mellifluousbox@mastodon.social
social:
mastodon: https://mastodon.social/@mellifluousbox

renchap:
name: Renaud Chaput
title: CTO
image: authors/renaud-chaput.jpg
webfinger: renchap@oisaur.com
social:
mastodon: https://oisaur.com/@renchap

andy:
name: Andy Piper
title: Developer Relations
image: authors/andy-piper.jpg
webfinger: andypiper@macaw.social
social:
mastodon: https://macaw.social/@andypiper
8 changes: 7 additions & 1 deletion themes/mastodon/layouts/partials/head/open_graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@
<meta name="og:image" content="{{ $hero.Permalink }}" />
{{ end }}
{{ end }}
{{ end }}

{{ range default (slice .Params.author) .Params.authors }}
{{ $author := index $.Site.Data.authors . }}
{{ with $author.name }}<meta name="article:author" content="{{ . }}" />{{ end }}
{{ with $author.webfinger }}<meta name="fediverse:creator" content="{{ . }}" />{{ end }}
{{ end }}
{{ end }}

0 comments on commit 6b4a48a

Please sign in to comment.