create anchors to each subsection#79
Conversation
|
Here is an example. Note however that the latest change (enabling the anchor also for This is due to the header and subheader being specified in default.html as |
… Only show them when hovering over the element, or on on a touch screen.
|
Since I opened this PR, I propose that someone else approves of it and merges it for release on the website. |
sappelhoff
left a comment
There was a problem hiding this comment.
I just tested it on my fork, and it works nicely. Thanks @robertoostenveld
One question on how you currently test on your fork:
I just merged your PR with my master to have it rendered on http://stefanappelhoff.com/bids-website/
Now I'll have to revert the merge on my fork to go back to master.
Also this is not ideal if I want to review several PRs.
How are you doing it?
I am doing it basically the same: I also have a Note that so far I did most testing on my local laptop, which I already knew how to do (since the FT website is also based on Jekyll). We definitely need a "neutral" place where PRs and/or branches can be rendered. |

This adds some javascript code to address #73
Each section (e.g. h1, h2, h3, etc.) now gets an anchor, using https://www.bryanbraun.com/anchorjs.