feat: Updates for search integration.
Some checks failed
CI / release (push) Failing after 2m32s

This commit is contained in:
2025-04-06 15:28:10 -04:00
parent b3a2400bc2
commit 1b29e8d833
6 changed files with 52 additions and 41 deletions

View File

@@ -24,7 +24,7 @@ func baseLayout(
body(class: "text-white text-lg pb-5 font-avenir \(section.rawValue)") {
siteHeader(section)
div(class: "container") {
div(class: "container mb-auto") {
children()
}
@@ -46,24 +46,28 @@ private func siteHeader(_ section: Section) -> Node {
}
}
}
nav(class: "menu") {
ul(class: "flex flex-wrap gap-x-2 lg:gap-x-5") {
li {
a(class: section == .articles ? "active" : "", href: "/articles/") { "Articles" }
}
li {
a(href: "https://uptime.housh.dev/status/housh-dev", rel: "nofollow", target: "_blank") { "Server-Monitor" }
}
li {
a(class: section == .about ? "active" : "", href: "/about.html") { "About" }
nav(class: "menu flex justify-between") {
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" }
}
li {
a(href: "https://uptime.housh.dev/status/housh-dev", rel: "nofollow", target: "_blank") { "Server-Monitor" }
}
li {
a(class: section == .about ? "active" : "", href: "/about.html") { "About" }
}
}
}
div(class: "font-avenir w-2/3", id: "search") {}
}
}
}
private func footer(_ rssLink: String) -> Node {
div(class: "site-footer text-slate-400 border-t border-light text-center pt-2 text-sm") {
div(class: "text-slate-400 border-t border-light text-center pt-2 text-sm") {
div {
"Copyright © Michael Housh \(Date().description.prefix(4))."
}
@@ -124,7 +128,6 @@ private func generateHeader(_ pageTitle: String, _ extraHeader: NodeConvertible)
<meta name="theme-color" content="#ffffff">
""")
link(href: "/static/output.css", rel: "stylesheet")
link(href: "/static/style.css", rel: "stylesheet")
link(href: "/articles/feed.xml", rel: "alternate", title: SiteMetadata.name, type: "application/rss+xml")
extraHeader
// script(src: "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js")
@@ -138,5 +141,6 @@ private func generateHeader(_ pageTitle: String, _ extraHeader: NodeConvertible)
});
</script>
""")
link(href: "/static/style.css", rel: "stylesheet")
}
}