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(sharing): add MKdocs hooks to insert social sharing buttons #17

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

Guts
Copy link
Member

@Guts Guts commented Nov 27, 2024

Add buttons to share on BlueSky, LinkedIn, Mastodon and Reddit using only intent URLs without using any JS (they often come with a tracking overload). It uses a Mkdocs hooks.

Light theme:

image

Dark theme:

image

For Mastodon, it's a bit tricky since the user has to pick up his instance before being redirected to its instance. I choose to use https://mastodonshare.com to make thinks easier but there is still something weird with hashtags: https://mapstodon.space/@geojulien/113559387741492037

We've to decide where to insert those buttons. For now, it's at the end of the post content. Maybe not the best, but it can be changed after.

@github-actions github-actions bot added enhancement New feature or request mkdocs tooling labels Nov 27, 2024
Copy link

🎉 The preview site for this PR has been generated and is available here.
Reference commit : dfdd627.

@Guts Guts self-assigned this Nov 27, 2024
@Guts Guts requested a review from gounux November 27, 2024 20:29
@Guts
Copy link
Member Author

Guts commented Nov 28, 2024

Let's merge and improve that later!

@Guts Guts merged commit 99a8259 into main Nov 28, 2024
4 checks passed
@Guts Guts deleted the feature/add-social-share-buttons branch November 28, 2024 17:27
@github-actions github-actions bot temporarily deployed to pr-previews November 28, 2024 17:28 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mkdocs tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants