briankoser / koser.us-metalsmith

The Koser family site powered by Metalsmith
MIT License
1 stars 0 forks source link

Make it easier to link to headings #17

Open briankoser opened 8 years ago

briankoser commented 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;
}
briankoser commented 8 years ago

https://github.com/briankoser/kotangent-jekyll/issues/28

briankoser commented 8 years ago

Probably will need a metalsmith plugin to add the IDs