adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
10.26k stars 2.72k forks source link

[Enhancement]: HTML meta "fediverse:creator" #1618

Open David-Guillot opened 1 month ago

David-Guillot commented 1 month ago

What you'd like to propose?

This summer Mastodon introduced a feature that allows to highlight the author of an article/post share on the Fediverse. It's been released this week with Mastodon 4.3 which has been deployed on most major instances, and it's awesome because it increases the visibility of everything we write and it allows people to easily browse contents from people who inspire them.

This feature relies on a new HTML OpenGraph meta tag:

<meta name="fediverse:creator" content="@user@instance" />

It would be pretty easy for this Hugo theme to support this new OpenGraph tag, based on a new configuration setting that would be fetch from a post front matter and would default on a site param. I'll open a PR right away.

Code of Conduct