about summary refs log tree commit diff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-12-20 14:30:49 -0800
committerFranck Cuny <franck@fcuny.net>2021-12-20 14:30:49 -0800
commitf6252b9292054e3b772865b6d279a1c08bbe8eca (patch)
tree53f787b37c34a0ff76b7a7e8dc4d1712175d7e74 /layouts/partials/header.html
parentbuild: push git branches / tags after deploy (diff)
downloadfcuny.net-f6252b9292054e3b772865b6d279a1c08bbe8eca.tar.gz
menu: simplify the menu
Diffstat (limited to '')
-rw-r--r--layouts/partials/header.html12
1 files changed, 3 insertions, 9 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 76e23a2..9118a50 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,13 +1,7 @@
 <header>
   <nav class='menu'>
-    <a href="{{ .Site.Home.Permalink }}"><b>{{ .Site.Home.Title }}</b></a>
-    <div class='navigation'>
-      {{ $currentPage := . }}
-      {{ range .Site.Menus.main }}
-      <a class='menu-item {{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}menu-active{{ end }}' href="{{ absURL .URL }}">
-        {{ .Title }}
-      </a>
-      {{ end }}
-    </div>
+    {{ range .Site.Menus.main }}
+    <a class='menu-item' href="{{ absURL .URL }}">{{ .Title }}</a>
+    {{ end }}
   </nav>
 </header>