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

[Feature request] Mastodon button #1

Open
mbootsman opened this issue Jan 5, 2023 · 3 comments
Open

[Feature request] Mastodon button #1

mbootsman opened this issue Jan 5, 2023 · 3 comments

Comments

@mbootsman
Copy link

Hi, do you have plans to include a Mastodon button?

@Stals
Copy link
Owner

Stals commented Feb 4, 2024

Hi, sorry I missed the Issue. This project is based on sharingbuttons.io, and sadly, there is no Mastodon button there at the moment.
It should be possible to add a new social network with a couple SVG's and a link to open, like http://twitter.com/share?url=
I do not know a lot about Mastodon, but as I understand it, the second part may be tricky. It would be possible to link to a third-party service for that, but it may stop being supported. The second is to add that support into this template itself, but this seems to go against the "no-js, no extra requests" idea. Also, I am not sure if providing the ability to specify a static URL in the settings would be enough. This wouldn't allow people to share it somewhere else.

That being said, it should be easier to add a specific button for your specific needs in a fork, copy-pasting the Twitter parts from https://github.com/Stals/hugo-share-buttons/blob/main/share-buttons.html, and only changing the specific svg in the style you are using, plus the link.
For a more general solution, I'm open to ideas on how to better do it and also pull requests.

@smoonlee
Copy link

smoonlee commented Dec 4, 2024

Hi, Just wanted to add to this - I've found your repo today to add to my hugosite, and using GitHub Copilot. some ChatGPT and Font Awesome and some coffee :D I've managed to get share links worknig for Bluesky and mastadon. will be creating a PR later today. I've been able to check bluesky, but havent got an account on Mastodon so can't confirm if the url works. :)

@smoonlee
Copy link

smoonlee commented Dec 4, 2024

Created PR - #3 🫡

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

No branches or pull requests

3 participants