TODO:
-
move the levels to config.yml -
a11y -
maybe use ::after
? -
add padding? -
fix :focus
if possible -
test that there are no regressions
Idea taken from https://github.com/gohugoio/gohugoioTheme/pull/146
Pros:
- No JS
- ...
Cons:
- Works only with Markdown headings, but on the other hand our ToC only works with Markdown already
- ...
Preview: https://deploy-preview-32953--twbs-bootstrap.netlify.app/docs/5.1/getting-started/introduction/