feature(sharing): add MKdocs hooks to insert social sharing buttons #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
Dark theme:
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.