Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zerostaticthemes/hugo-serif-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Pettersson <petterssonjoel@gmail.com>2022-08-15 21:15:29 +0300
committerJoel Pettersson <petterssonjoel@gmail.com>2022-08-15 21:15:29 +0300
commit0ced620b62e96aaee7e0b4d4373a99d33673a8fc (patch)
tree3f9a1628429afcb7ac3656ac5365bc534bc547f0
parent17179c683a3eda6a1c89fcb5de4614a85c28e463 (diff)
fixup! Fix home page not marked as active in menu
-rw-r--r--layouts/partials/main-menu-mobile.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/main-menu-mobile.html b/layouts/partials/main-menu-mobile.html
index 23f3ff5..5b6e2a2 100644
--- a/layouts/partials/main-menu-mobile.html
+++ b/layouts/partials/main-menu-mobile.html
@@ -2,7 +2,7 @@
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
- {{ $active := or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }}
+ {{ $active := or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
{{ $active = or $active (eq (.URL | relLangURL) ($currentPage.RelPermalink | relLangURL)) }}
<li class="menu-item-{{ .Name | lower }} {{ if $active }}active{{ end }}">
<a href="{{ .URL }}">