diff --git a/site/assets/scss/_toc.scss b/site/assets/scss/_toc.scss index 596945628e7c..3e09e50b260a 100644 --- a/site/assets/scss/_toc.scss +++ b/site/assets/scss/_toc.scss @@ -13,25 +13,24 @@ nav { @include font-size(.875rem); - ul { - padding-left: 0; - list-style: none; - - ul { - padding-left: 1rem; - margin-top: .25rem; - } + ul ul { + padding-left: 1rem; + margin-top: .25rem; } li { margin-bottom: .25rem; + + > .nav-link.active { + background-color: $bd-purple-light; + } } a { color: inherit; - &:not(:hover) { - text-decoration: none; + &:hover:not(.active) { + text-decoration: underline; } code { diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index dd063c5dc8a8..3428ecaa2128 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -1,3 +1,4 @@ +{{ define "body_override" }}{{ end }} {{ define "main" }} {{ partial "docs-subnav" . }} @@ -19,7 +20,7 @@

{{ .Title | markdownify }}

{{ if (eq .Page.Params.toc true) }}
On this page - {{ .TableOfContents }} + {{ .Page.TableOfContents | replaceRE "(
  • )" "
  • " | replaceRE "(
  • {{ end }}