[Solo] Add anchor link to content headings #2
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.
This change adds anchor links to post headings, enabling you to share deep links to your articles so that people can navigate directly to the relevant content you're trying to share. The anchor link is hidden until you hover over (or touch) the heading, and once it's displayed you can copy the link to share it with someone else.
Here's a demo of what it looks like:
solo-heading-anchor-demo.mp4
And I'm hosting a live demo on my personal website which you can see here: https://evanw.com/2021-my-year-in-reading/#the-stats
This feature is really useful when you write longer-form content and want to share a specific section with someone, or if you're trying to link to specific sections within your own content.
If there are any questions or concerns about this change, please let me know. Thanks for the consideration!