Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added mastodon verification #524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

haicenhacks
Copy link

@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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants