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 as one of socials for Author Card #153

Open
aldy505 opened this issue Dec 2, 2023 · 0 comments
Open

Add Mastodon as one of socials for Author Card #153

aldy505 opened this issue Dec 2, 2023 · 0 comments
Labels
difficulty: easy enhancement New feature or request

Comments

@aldy505
Copy link
Member

aldy505 commented Dec 2, 2023

Currently we have GitHub, Telegram, and Twitter on every author card just below the author's name in every blog post.

Now since some people are moving to Mastodon to expand their audiences, or because some people prefer Mastodon as it's more FOSS than Twitter (or for whatever reason), we should support it.

We should add another prop on the AuthorCard component, the value should be @username@host. For example: @[email protected]. The link then should be parsed to https://hachyderm.io/@mustafasegf.

export function AuthorCard(props: AuthorCardProps) {

One edge case: It should also handle multiple @ (at) points. Like @[email protected]@social.gnuweeb.org, it should be parsed to https://social.gnuweeb.org/@[email protected]

@aldy505 aldy505 added enhancement New feature or request difficulty: easy labels Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: easy enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant