diff options
author | Julien Dessaux | 2022-10-24 01:03:05 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-10-24 01:03:05 +0200 |
commit | 682bd57e9103c4d54689761bd1bf7770fe020d65 (patch) | |
tree | 360ae0a21418a5ab7e075f7b57dac1b42e860abd /layouts | |
parent | Amended last article (diff) | |
download | www-682bd57e9103c4d54689761bd1bf7770fe020d65.tar.gz www-682bd57e9103c4d54689761bd1bf7770fe020d65.tar.bz2 www-682bd57e9103c4d54689761bd1bf7770fe020d65.zip |
highlight website title while on home page and a css cleanup
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5faf4e4..05345a3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -27,7 +27,7 @@ </head> <body> {{- partial "nav.html" . -}} - <main id="main"> + <main> {{- block "main" . }}{{ end -}} </main> {{- partial "footer.html" . -}} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index eeec5f2..1020c03 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,7 +1,7 @@ <header> <nav> <ul> - <li class="nav-menu-title"><a href="/">{{ .Site.Title }}</a></li> + <li class="nav-menu-title{{if .IsHome}} nav-menu-active{{end}}"><a href="/">{{ .Site.Title }}</a></li> {{- $p := . -}} {{- range first 1 .Site.Menus.main.ByWeight -}} |