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

🎉Feat: add automatic generation of mastodon verification links #559

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

AliSajid
Copy link
Contributor

@AliSajid AliSajid commented Dec 3, 2024

This pull request includes changes to the layouts/partials/head/link.html file to add Mastodon validation for the site. The changes ensure that the Mastodon configuration is correctly handled and validated, and if valid, it constructs and includes the appropriate Mastodon profile link and meta tags in the HTML.

Key changes include:

  • Added logic to handle Mastodon configuration as either a string or a map/object, and to validate the configuration. If the configuration is invalid, an error message is generated.
  • Constructed the Mastodon profile URL using the validated configuration and included the rel="me" link and meta tag in the HTML if a valid ID is present.

Closes #558

Copy link

vercel bot commented Dec 3, 2024

@AliSajid is attempting to deploy a commit to the FixIt Team on Vercel.

A member of the Team first needs to authorize it.

@Lruihao Lruihao self-requested a review December 3, 2024 09:25
@Lruihao Lruihao added the enhancement New feature or request label Dec 3, 2024
@Lruihao Lruihao added this to the v0.3.x milestone Dec 3, 2024
Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fixit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 9:27am

Copy link
Member

@Lruihao Lruihao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Lruihao Lruihao merged commit c0115f6 into hugo-fixit:master Dec 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FEATURE] Mastodon Verification Link in Header
2 participants