Wrap nav links into a list.
This commit is contained in:
parent
c0e4981d62
commit
e313a52daf
@ -147,9 +147,10 @@ header.main nav {
|
||||
font-variant: small-caps;
|
||||
width: 300px; }
|
||||
|
||||
header.main nav div {
|
||||
header.main nav ul {
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
list-style: none;
|
||||
width: 100%; }
|
||||
|
||||
section {
|
||||
|
@ -51,17 +51,17 @@ templ navigation(title string) {
|
||||
{{ sections := []string{"Stuff", "Mindflow", "About", "Guestbook"} }}
|
||||
{{ links := []templ.SafeURL{"/stuff", "/mindflow", "/about", "/guestbook"} }}
|
||||
<nav>
|
||||
<div>
|
||||
<ul>
|
||||
if title != "" {
|
||||
<a href="/">Home</a>
|
||||
<li><a href="/">Home</a></li>
|
||||
}
|
||||
for i, s := range sections {
|
||||
if strings.HasSuffix(title, s) {
|
||||
{{ continue }}
|
||||
}
|
||||
<a href={ links[i] }>{ s }</a>
|
||||
<li><a href={ links[i] }>{ s }</a></li>
|
||||
}
|
||||
</div>
|
||||
</ul>
|
||||
if title != "" {
|
||||
<h1>
|
||||
if strings.HasSuffix(title, "- Stuff") {
|
||||
|
Loading…
Reference in New Issue
Block a user