feat: Removes unused about section.
All checks were successful
CI / release (push) Successful in 7m6s
All checks were successful
CI / release (push) Successful in 7m6s
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
/// This is used to render base layouts appropriately for the given section.
|
/// This is used to render base layouts appropriately for the given section.
|
||||||
enum Section: String {
|
enum Section: String {
|
||||||
case home
|
case home
|
||||||
case about
|
|
||||||
case articles
|
case articles
|
||||||
case notFound
|
case notFound
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,8 +27,9 @@ func baseLayout(
|
|||||||
div(class: "container mb-auto") {
|
div(class: "container mb-auto") {
|
||||||
children()
|
children()
|
||||||
}
|
}
|
||||||
|
if section == .articles {
|
||||||
footer(rssLink)
|
footer(rssLink)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -55,9 +56,6 @@ private func siteHeader(_ section: Section) -> Node {
|
|||||||
li {
|
li {
|
||||||
a(href: "https://uptime.housh.dev/status/housh-dev", rel: "nofollow", target: "_blank") { "Server-Monitor" }
|
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" }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ func renderPage(context: ItemRenderingContext<PageMetadata>) -> Node {
|
|||||||
|
|
||||||
func renderHome(body: String) -> Node {
|
func renderHome(body: String) -> Node {
|
||||||
div {
|
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") {
|
div(class: "my-24 uppercase font-avenir text-[40px] leading-[1.25] font-thin text-center [&>h1>strong]:font-bold") {
|
||||||
Node.raw(body)
|
Node.raw(body)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
section: about
|
|
||||||
---
|
|
||||||
|
|
||||||
# About
|
|
||||||
|
|
||||||
Internal documentation site for **Housh - The Home Energy Experts**
|
|
||||||
@@ -4,4 +4,4 @@ section: home
|
|||||||
|
|
||||||
# Home
|
# Home
|
||||||
|
|
||||||
## Welcome to our internal documentation site
|
## Internal documentation site
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
1
justfile
1
justfile
@@ -14,6 +14,7 @@ run:
|
|||||||
touch .build/browser-dev-sync
|
touch .build/browser-dev-sync
|
||||||
browser-sync start -p localhost:1414 --watch --files '.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 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'
|
watchexec -w .build/browser-dev-sync --ignore-nothing -r 'npx -y pagefind --site deploy --serve'
|
||||||
|
|
||||||
# Create a new article with given name and tags.
|
# Create a new article with given name and tags.
|
||||||
|
|||||||
Reference in New Issue
Block a user