Last week I did some testing with my personal site and added the fediverse:creator metadata tag it.

You can read about how I did this here.

To keep both websites inline, I’ve now also added it to this Hugo site as well. It was fairly simple. All I had to do was copy the head.html partical from the theme’s layout, bring it up to my top level directory layouts folder and add this small snippet of code in:

{{- /* Mastodon Author Tag */}}
{{ if .Site.Params.Mastodon }}
<meta name="fediverse:creator" content="{{ .Site.Params.mastodon.author }}" />
{{ end }}

Once I’d have done that, I simply updated my site’s config.yaml to include my Mastodon handle:

mastodon:
    author: "@[email protected]"

Now when I share posts from this site to Mastodon, there should be a little ‘More from Akash Goswami’ tag at the bottom of the preview card when links from this site are shared on Mastodon.