Open briankoser opened 8 years ago
https://github.com/Automattic/jquery-anchorify
From [Emmet}(http://docs.emmet.io/) CSS:
<h2><a name="elements" href="#elements" class="anchor"></a>Elements</h2> .anchor { color: inherit; display: inline-block; margin-left: -1em; opacity: 0; position: absolute; width: 1em; } .anchor:before { content: '¶'; } *:hover > .anchor, .anchor:hover { opacity: 0.8; }
https://github.com/briankoser/kotangent-jekyll/issues/28
Probably will need a metalsmith plugin to add the IDs
https://github.com/Automattic/jquery-anchorify
From [Emmet}(http://docs.emmet.io/) CSS: