kaiiiz / hugo-theme-monochrome

Monochrome is a fast, clean and responsive hugo theme
https://kaiiiz.github.io/hugo-theme-monochrome/
MIT License
182 stars 52 forks source link

Heading links #18

Closed Nightfirecat closed 4 months ago

Nightfirecat commented 2 years ago

Hugo automatically generates IDs for header elements via the functionality in the BlackFriday markdown parser, and it is a somewhat common feature to create <a> elements next to these headers (or appearing on hover) which link to these IDs for ease of copying links to specific headings on a blog post. Monochrome currently does not have any such link present, on hover or otherwise. Could this be added?

kaiiiz commented 2 years ago

I think this feature can be done by regular expression replacement for the .Content rendered from hugo. I'll add this to TODO, thanks for the suggestion.

kaiiiz commented 4 months ago

Implemented in v3.1.0