mirror of https://github.com/luizdepra/hugo-coder.git

Matt Ellery
13.10.2024 4659f5641740561b67155d856cebe5b5a63546d0
Add fediverse:creator meta tag (#920)

### Prerequisites

Put an `x` into the box(es) that apply:

- [ ] This pull request fixes a bug.
- [ x] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

As announced in
https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/
Mastodon have added support for a new meta tag: fediverse:creator. This
change adds the fediverse:creator meta tag which can be used in blog
posts.

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [ x] Describe what changes are being made
- [ x] Explain why and how the changes were necessary and implemented
respectively

#### Contributors

- [x ] Add yourself to `CONTRIBUTORS.md` if you aren't on it already

---------

Co-authored-by: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
2 files modified
2 ■■■■■ changed files
CONTRIBUTORS.md 1 ●●●● patch | view | raw | blame | history
layouts/partials/head/meta-tags.html 1 ●●●● patch | view | raw | blame | history
CONTRIBUTORS.md
@@ -144,3 +144,4 @@
- [Antoine "Toinux" Wam](https://github.com/itzwam)
- [Reberti Carvalho Soares](https://github.com/RebertiCS)
- [Andreas Deininger](https://github.com/deining)
- [Matt Ellery](https://github.com/matt-ellery)
layouts/partials/head/meta-tags.html
@@ -10,6 +10,7 @@
<meta name="author" content="{{ . }}">{{ end }}
<meta name="description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}">
<meta name="keywords" content="{{ (delimit .Keywords ", ") | default .Site.Params.keywords }}">
<meta name="fediverse:creator" content="{{ .Params.fediverseCreator }}" />
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}