From 4ed10e5bc0febfb06220104d83a53bd3efc957b4 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Mon, 3 Apr 2023 19:49:53 +0200 Subject: [PATCH] Show currently selected nav item --- sass/_nav.scss | 5 +++++ templates/macros.html | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/sass/_nav.scss b/sass/_nav.scss index 657aff5..ca07fe0 100644 --- a/sass/_nav.scss +++ b/sass/_nav.scss @@ -61,6 +61,11 @@ nav { display:flex; justify-content:center; background:$nav-background-secondary; + + a.active { + color: $nav-anchor-hover-color; + background-color: $nav-background-primary; + } } } diff --git a/templates/macros.html b/templates/macros.html index 0960b2d..329685c 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -42,7 +42,11 @@ {% macro subnav() %} {% endmacro subnav %}