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

Add Mastodon/Fediverse attribution meta tags #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

goulvench
Copy link

@goulvench goulvench commented Oct 13, 2024

Add <link rel="me"> and fediverse:creator meta.

See https://joinmastodon.org/verification and mastodon/mastodon#30398

To use, open site.metadata.yml and add mastodon username and server:

mastodon:
  username: handle
  server: mastodon.server

Generates:

<link rel="me" href="https://mastodon.server/@handle">
<meta name="fediverse:creator" content="@[email protected]">

@jaredcwhite
Copy link
Member

This is awesome! Thanks 🙏🏻

@goulvench
Copy link
Author

Glad you like it!
The test failures seem unrelated, but let me know if there's something I should do to push this forward.

@jaredcwhite
Copy link
Member

@goulvench I think I can merge as-is, but would you be able to add a bit of documentation to the Readme? (sorry it's taken me a while to circle back around to this)

@goulvench
Copy link
Author

Here's an update with a bit of documentation.

The "unescaped HTML in heredoc" warning tells me that I should replace this very basic implementation with mastodon_handle and mastodon_url methods in AuthorDrop. This would allow people to just drop @[email protected] into the site or page metadata, and be done with it, without wielding YAML…
I'll try and add this today.

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