highlight website title while on home page and a css cleanup

This commit is contained in:
Julien Dessaux 2022-10-24 01:03:05 +02:00
parent 62ba31ee46
commit 682bd57e91
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ body {
font-feature-settings: "kern" 1; font-feature-settings: "kern" 1;
font-kerning: normal; font-kerning: normal;
} }
#main { main {
padding-left:1em; padding-left:1em;
padding-right:1em; padding-right:1em;
scrollbar-gutter: stable both-edges; scrollbar-gutter: stable both-edges;

View file

@ -27,7 +27,7 @@
</head> </head>
<body> <body>
{{- partial "nav.html" . -}} {{- partial "nav.html" . -}}
<main id="main"> <main>
{{- block "main" . }}{{ end -}} {{- block "main" . }}{{ end -}}
</main> </main>
{{- partial "footer.html" . -}} {{- partial "footer.html" . -}}

View file

@ -1,7 +1,7 @@
<header> <header>
<nav> <nav>
<ul> <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 := . -}} {{- $p := . -}}
{{- range first 1 .Site.Menus.main.ByWeight -}} {{- range first 1 .Site.Menus.main.ByWeight -}}