From fa58475a37b0cd4cd72ccb1aa09a92976c1adb80 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 11 Feb 2019 23:06:48 +0100 Subject: [PATCH] Add temporary workaround to higlight active linkn in menu bundle --- exampleSite/config.yml | 3 +++ layouts/partials/docs/menu-bundle.html | 5 +++++ 2 files changed, 8 insertions(+) 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 @@ + {{ with .Site.GetPage .Site.Params.BookMenuBundle }} {{- .Content -}} {{ end }} \ No newline at end of file