diff options
Diffstat (limited to 'layouts/partials/docs/shared.html')
-rw-r--r-- | layouts/partials/docs/shared.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/docs/shared.html b/layouts/partials/docs/shared.html index 2027007..8354e6a 100644 --- a/layouts/partials/docs/shared.html +++ b/layouts/partials/docs/shared.html @@ -9,3 +9,18 @@ {{- default $title .Title -}} {{- end -}} {{ end }} + +{{ define "hrefhack" }} + {{ $attrEq := "$=" }} + {{ $attrVal := .RelPermalink }} + {{ if eq .RelPermalink "/" }} + {{ $attrEq = "=" }} + {{ $attrVal = .Permalink }} + {{ end }} + + <style> + nav ul a[href{{ $attrEq }}"{{ $attrVal }}"] { + color: {{ default "#004ed0" .Site.Params.BookMenuBundleActiveLinkColor }}; + } + </style> +{{ end }}
\ No newline at end of file |