feat: Adds more navigation items to sidebar and removes top navigation bar.
All checks were successful
CI / release (push) Successful in 6m53s
All checks were successful
CI / release (push) Successful in 6m53s
This commit is contained in:
@@ -31,6 +31,14 @@ func baseLayout(
|
||||
if section == .articles {
|
||||
footer(rssLink)
|
||||
}
|
||||
// NOTE: These need to stay at / near bottom of page, so that icons are
|
||||
// generated properly.
|
||||
script(src: "https://unpkg.com/lucide@latest")
|
||||
Node.raw("""
|
||||
<script>
|
||||
lucide.createIcons();
|
||||
</script>
|
||||
""")
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -48,21 +56,11 @@ private func siteHeader(_ section: Section) -> Node {
|
||||
}
|
||||
}
|
||||
}
|
||||
nav(class: "menu flex justify-between") {
|
||||
if section != .home {
|
||||
div(class: "pt-6") {
|
||||
ul(class: "flex flex-wrap gap-x-2 lg:gap-x-5") {
|
||||
li {
|
||||
a(class: section == .articles ? "active" : "", href: "/articles/") { "Articles" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: Explore search being hidden / triggered by a button and hover above
|
||||
// the page content.
|
||||
div(class: "font-avenir w-full pt-4 px-8", id: "search") {}
|
||||
div(class: "mt-2 mb-0 w-full border-b border-slate-200")
|
||||
}
|
||||
|
||||
// TODO: Explore search being hidden / triggered by a button and hover above
|
||||
// the page content.
|
||||
div(class: "font-avenir w-full p-4 px-8", id: "search") {}
|
||||
div(class: "mt-2 mb-0 w-full border-b border-slate-200")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user