diff options
-rw-r--r-- | exampleSite/config.yml | 3 | ||||
-rw-r--r-- | layouts/partials/docs/menu-bundle.html | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml index 1e033b4..7c20c0f 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -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 diff --git a/layouts/partials/docs/menu-bundle.html b/layouts/partials/docs/menu-bundle.html index bdabefd..cf18aa3 100644 --- a/layouts/partials/docs/menu-bundle.html +++ b/layouts/partials/docs/menu-bundle.html @@ -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 }}
\ No newline at end of file |