From 7b4e3ac695e6df24878c704d742c15a1bcb32fc5 Mon Sep 17 00:00:00 2001 From: Halfdan Date: Tue, 13 Dec 2022 20:24:39 +0100 Subject: [PATCH] Highlighting of current page stopped working, something with new URLS, this fix fixes it, but I don't know if it is the correct way to accomplish it. --- themes/datacoop2020/layouts/partials/nav.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/datacoop2020/layouts/partials/nav.html b/themes/datacoop2020/layouts/partials/nav.html index b677964..7b712e1 100644 --- a/themes/datacoop2020/layouts/partials/nav.html +++ b/themes/datacoop2020/layouts/partials/nav.html @@ -2,7 +2,9 @@
    {{ $currentPage := . }} {{ range .Site.Menus.nav }} -
  1. {{ .Name }}
  2. + {{ $atURL := absURL $currentPage.URL }} + {{ $compURL := absURL .URL }} +
  3. {{ .Name }}
  4. {{ end }}