From 0e009975d95c47bce6a54f4d7e03e6a05a565a78 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 25 Nov 2020 13:02:12 +0100 Subject: [PATCH] Highlight active menu entry --- assets/_colors.scss | 2 ++ assets/style.scss | 1 + layouts/_default/baseof.html | 6 +++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/_colors.scss b/assets/_colors.scss index dc2104d..d077b01 100644 --- a/assets/_colors.scss +++ b/assets/_colors.scss @@ -1,2 +1,4 @@ $background: #100e23; $text-color: #ffffff; + +$highlight: #05b9ec; diff --git a/assets/style.scss b/assets/style.scss index 2f00caa..3633159 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -115,6 +115,7 @@ figure { padding: 0.5em; &.nav-link-active { + color: $highlight; } } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1f00b02..cd24cd7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,3 +1,4 @@ +{{ $currentPage := . }} @@ -20,7 +21,6 @@ {{ end }}
{{ end }} - {{ $currentPage := . }} {{ range .Site.Menus.main }} {{ .Name }} {{ end }} @@ -29,10 +29,10 @@ {{ block "main" . }} {{ end }}