about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts/partials/header.html
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-23 09:15:40 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-23 09:15:40 -0700
commitdbacc543ca0a397a73a520d6c92fd08a7cf3b6aa (patch)
tree481a9986412dd3cc2b35f974fc8f7a874cb7f41a /users/fcuny/notes/layouts/partials/header.html
parentbuild: tag the repo after a deploy (diff)
downloadworld-dbacc543ca0a397a73a520d6c92fd08a7cf3b6aa.tar.gz
CSS: makes the menu more readable
Move the title to the left and the menu items to the right.
Diffstat (limited to 'users/fcuny/notes/layouts/partials/header.html')
-rw-r--r--users/fcuny/notes/layouts/partials/header.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/users/fcuny/notes/layouts/partials/header.html b/users/fcuny/notes/layouts/partials/header.html
index 508e259..76e23a2 100644
--- a/users/fcuny/notes/layouts/partials/header.html
+++ b/users/fcuny/notes/layouts/partials/header.html
@@ -1,15 +1,13 @@
 <header>
   <nav class='menu'>
-    <a href="{{ .Site.Home.Permalink }}">{{ .Site.Home.Title }}</a>
-    <ul>
+    <a href="{{ .Site.Home.Permalink }}"><b>{{ .Site.Home.Title }}</b></a>
+    <div class='navigation'>
       {{ $currentPage := . }}
       {{ range .Site.Menus.main }}
-      <li>
-        <a class='{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}menu-active{{ end }}' href="{{ absURL .URL }}">
-          {{ .Title }}
-        </a>
-      </li>
+      <a class='menu-item {{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}menu-active{{ end }}' href="{{ absURL .URL }}">
+        {{ .Title }}
+      </a>
       {{ end }}
-    </ul>
+    </div>
   </nav>
 </header>