-
- Downloads
Ensure link anchors aren't obscured by the nav bar when used
Hugo automatically generates IDs for each title when the HTML pages are
generated. These IDs can be used as anchors in the document, so that we
can provide URLs that jump to the specific title when the link is
followed. Browsers will place the anchor at the top of the window,
however we have a floating navigation bar there which results in the
anchor being obscured, which can be a bit disorientating.
Tweak the CSS to pad the top of the heading, but in a way that doesn't
result in the heading being visibily spaced further from the previous
text. Add override to main page heading to stop it being padded down
the page.
Signed-off-by:
Martyn Welch <martyn.welch@collabora.com>
parent
d25dc2de
No related branches found
No related tags found
-
mentioned in commit 168060b6
-
mentioned in merge request !251 (merged)
-
mentioned in commit 29608543
Please register or sign in to comment