feat: Removes unused about section.
All checks were successful
CI / release (push) Successful in 7m6s

This commit is contained in:
2025-04-07 08:47:36 -04:00
parent 9d380ad300
commit 2fa26ef552
7 changed files with 6 additions and 16 deletions

View File

@@ -3,7 +3,6 @@
/// This is used to render base layouts appropriately for the given section.
enum Section: String {
case home
case about
case articles
case notFound
}

View File

@@ -27,8 +27,9 @@ func baseLayout(
div(class: "container mb-auto") {
children()
}
footer(rssLink)
if section == .articles {
footer(rssLink)
}
}
}
]
@@ -55,9 +56,6 @@ private func siteHeader(_ section: Section) -> Node {
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" }
}
}
}

View File

@@ -27,7 +27,6 @@ func renderPage(context: ItemRenderingContext<PageMetadata>) -> Node {
func renderHome(body: String) -> Node {
div {
// 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)
}

View File

@@ -1,7 +0,0 @@
---
section: about
---
# About
Internal documentation site for **Housh - The Home Energy Experts**

View File

@@ -4,4 +4,4 @@ section: home
# Home
## Welcome to our internal documentation site
## Internal documentation site

File diff suppressed because one or more lines are too long

View File

@@ -14,6 +14,7 @@ run:
touch .build/browser-dev-sync
browser-sync start -p localhost:1414 --watch --files '.build/browser-dev-sync' &
watchexec -w Sources -e .swift -r 'swift run && touch .build/browser-dev-sync' &
watchexec -w content -e .md -r 'swift run && touch .build/browser-dev-sync' &
watchexec -w .build/browser-dev-sync --ignore-nothing -r 'npx -y pagefind --site deploy --serve'
# Create a new article with given name and tags.