Skip to content

added mastodon verification#524

Open
haicenhacks wants to merge 3 commits intopanr:masterfrom
haicenhacks:master
Open

added mastodon verification#524
haicenhacks wants to merge 3 commits intopanr:masterfrom
haicenhacks:master

Conversation

@haicenhacks
Copy link
Copy Markdown

@haicenhacks haicenhacks commented Feb 2, 2025

I wanted an easy way to add verification for Mastodon for my blog.

I made some minor changes to the head.html file to add similar logic as the twitter card block.

In my Hugo config, I added a new config value.

[params.mastodon]
  url = "<URL_GOES_HERE>"
@roddie-digital
Copy link
Copy Markdown

Would also be nice to add the fediverse:creator meta tag where links shared on Mastodon etc get a byline linking to the fedi account of the author/creator:

https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/

It uses the handle rather than the URL so would need a separate parameter from the one used for verification. There is a write-up here about making changes to a Hugo theme to include it. I had a mess around on my local copy but I couldn't get it to work with the check only including the tag if the parameter exists:

https://neilzone.co.uk/2024/07/adding-open-graph-meta-tags-to-my-hugo-static-sites-theme-for-nicer-fedi-link-previews/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants