diff options
author | Franck Cuny <franck@fcuny.net> | 2021-08-23 09:15:40 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-08-23 09:15:40 -0700 |
commit | b667d82b1e01bbdcbeeff6defc483540188856e0 (patch) | |
tree | 4daf54fdc332ee2e64bad8eef87998c77ac2b77d /users/fcuny/blog/layouts | |
parent | build: tag the repo after a deploy (diff) | |
download | world-b667d82b1e01bbdcbeeff6defc483540188856e0.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/blog/layouts')
-rw-r--r-- | users/fcuny/blog/layouts/partials/header.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/users/fcuny/blog/layouts/partials/header.html b/users/fcuny/blog/layouts/partials/header.html index 508e259..76e23a2 100644 --- a/users/fcuny/blog/layouts/partials/header.html +++ b/users/fcuny/blog/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> |