about summary refs log tree commit diff
path: root/users
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
commite09c70965afc75eb1a3ae02e8bbc88fce562f69d (patch)
tree4ce6e9eb00efc3802f193878dfeb0d62ddc0896c /users
parentbuild: push git branches / tags after deploy (diff)
downloadworld-e09c70965afc75eb1a3ae02e8bbc88fce562f69d.tar.gz
menu: simplify the menu
Diffstat (limited to 'users')
-rw-r--r--users/fcuny/blog/config.toml7
-rw-r--r--users/fcuny/blog/layouts/partials/header.html12
2 files changed, 10 insertions, 9 deletions
diff --git a/users/fcuny/blog/config.toml b/users/fcuny/blog/config.toml
index d600506..c126d16 100644
--- a/users/fcuny/blog/config.toml
+++ b/users/fcuny/blog/config.toml
@@ -17,6 +17,13 @@ enableGitInfo = true
 
 [menu]
   [[menu.main]]
+    identifier = "home"
+    name = "home"
+    title = "fcuny.net"
+    url = "/"
+    weight = 130
+
+  [[menu.main]]
     identifier = "articles"
     name = "blog"
     title = "articles"
diff --git a/users/fcuny/blog/layouts/partials/header.html b/users/fcuny/blog/layouts/partials/header.html
index 76e23a2..9118a50 100644
--- a/users/fcuny/blog/layouts/partials/header.html
+++ b/users/fcuny/blog/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>