mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +00:00
Add temporary workaround to higlight active linkn in menu bundle
This commit is contained in:
parent
4ce973a4e2
commit
fa58475a37
@ -18,6 +18,9 @@ params:
|
||||
# if not specified file structure and weights will be used
|
||||
BookMenuBundle: /menu
|
||||
|
||||
# This value is duplicate of $link-color for making active link highlight in menu bundle mode
|
||||
# BookMenuBundleActiveLinkColor: \#004ed0
|
||||
|
||||
# specify section of content to render as menu
|
||||
# if bookMenuBundle is not set, 'docs' is value by default
|
||||
BookSection: docs
|
||||
|
@ -1,3 +1,8 @@
|
||||
<style>
|
||||
nav ul a[href="{{- .Permalink -}}"] {
|
||||
color: {{ default .Site.Params.BookMenuBundleActiveLinkColor "#004ed0" }};
|
||||
}
|
||||
</style>
|
||||
{{ with .Site.GetPage .Site.Params.BookMenuBundle }}
|
||||
{{- .Content -}}
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user