diff options
author | Franck Cuny <franck@fcuny.net> | 2021-12-20 14:30:49 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-12-20 14:30:49 -0800 |
commit | b0385745b32b9853e31c1ccf53cf860e374f1ad0 (patch) | |
tree | d0d94d733328d5ffa7427195cf7cf896946de7d4 /users/fcuny/notes/layouts/partials | |
parent | build: push git branches / tags after deploy (diff) | |
download | world-b0385745b32b9853e31c1ccf53cf860e374f1ad0.tar.gz |
menu: simplify the menu
Diffstat (limited to '')
-rw-r--r-- | users/fcuny/notes/layouts/partials/header.html | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/users/fcuny/notes/layouts/partials/header.html b/users/fcuny/notes/layouts/partials/header.html index 76e23a2..9118a50 100644 --- a/users/fcuny/notes/layouts/partials/header.html +++ b/users/fcuny/notes/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> |