This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ func renderPage(context: ItemRenderingContext<PageMetadata>) -> Node {
|
||||
|
||||
func renderHome(body: String) -> Node {
|
||||
div {
|
||||
div(class: "font-avenir", id: "search") {}
|
||||
// div(class: "font-avenir mt-8", id: "search") {}
|
||||
div(class: "my-24 uppercase font-avenir text-[40px] leading-[1.25] font-thin text-center [&>h1>strong]:font-bold") {
|
||||
Node.raw(body)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user