feat: Adds legacy po link to home page.
All checks were successful
CI / release (push) Successful in 6m6s
All checks were successful
CI / release (push) Successful in 6m6s
This commit is contained in:
@@ -35,7 +35,6 @@ struct Run {
|
||||
writers: [
|
||||
.itemWriter(swim(renderArticle)),
|
||||
.listWriter(swim(renderArticles)),
|
||||
.listWriter(renderJson, output: "../static/search.json"),
|
||||
.tagWriter(swim(renderTag), tags: \.metadata.tags),
|
||||
.yearWriter(swim(renderYear)),
|
||||
// Atom feed for all articles, and a feed per tag
|
||||
|
||||
@@ -14,13 +14,13 @@ func tagPrefix(index: Int, totalTags: Int) -> Node {
|
||||
}
|
||||
|
||||
func renderArticleInfo(_ article: Item<ArticleMetadata>) -> Node {
|
||||
div(class: "text-slate-400 gray-links text-sm mb-8") {
|
||||
div(class: "text-slate-400 text-sm mb-8") {
|
||||
span(class: "border-r border-gray pr-2 mr-2") {
|
||||
article.getDate().formatted("MMMM dd, yyyy")
|
||||
}
|
||||
|
||||
if let updated = article.getUpdatedDate() {
|
||||
span(class: "border-r border-gray pr-2 mr-2") {
|
||||
span(class: "border-r border-slate-400 pr-2 mr-2") {
|
||||
"Updated: \(updated.formatted("MMMM dd, yyyy"))"
|
||||
}
|
||||
}
|
||||
@@ -30,9 +30,6 @@ func renderArticleInfo(_ article: Item<ArticleMetadata>) -> Node {
|
||||
article.metadata.tags.sorted().enumerated().map { index, tag in
|
||||
Node.fragment([
|
||||
%tagPrefix(index: index, totalTags: article.metadata.tags.count),
|
||||
Node.raw("""
|
||||
<i class="fa fa-home"></i>
|
||||
"""),
|
||||
%a(class: "text-orange-400 [&:hover]:border-b border-green-400", href: "/articles/tag/\(tag.slugified)/") {
|
||||
tag
|
||||
}
|
||||
|
||||
@@ -30,48 +30,58 @@ func renderHome(body: String) -> Node {
|
||||
div(class: "my-24 font-avenir leading-[1.25] font-thin text-center [&>h1>strong]:font-bold") {
|
||||
Node.raw(body)
|
||||
}
|
||||
div(class: "grid lg:grid-cols-2 gap-6") {
|
||||
HomeLink.internal(
|
||||
"Articles",
|
||||
icon: "newspaper",
|
||||
href: "/articles/",
|
||||
description: "Click here to view articles."
|
||||
)
|
||||
div {
|
||||
h2 { "Quick Links" }
|
||||
div(class: "grid lg:grid-cols-2 gap-6") {
|
||||
HomeLink.internal(
|
||||
"Articles",
|
||||
icon: "newspaper",
|
||||
href: "/articles/",
|
||||
description: "Click here to view articles."
|
||||
)
|
||||
|
||||
HomeLink.external(
|
||||
"Service Monitor",
|
||||
icon: "heart-pulse",
|
||||
href: "https://uptime.housh.dev/status/housh-dev",
|
||||
description: "Click here to view the service status."
|
||||
)
|
||||
HomeLink.external(
|
||||
"Service Monitor",
|
||||
icon: "heart-pulse",
|
||||
href: "https://uptime.housh.dev/status/housh-dev",
|
||||
description: "Click here to view the service status."
|
||||
)
|
||||
|
||||
HomeLink.external(
|
||||
"Purchase Orders",
|
||||
icon: "calculator",
|
||||
href: "https://po.housh.dev",
|
||||
description: "Purchase orders application."
|
||||
)
|
||||
HomeLink.external(
|
||||
"Purchase Orders",
|
||||
icon: "calculator",
|
||||
href: "https://po.housh.dev",
|
||||
description: "Purchase orders application."
|
||||
)
|
||||
|
||||
HomeLink.external(
|
||||
"Excalidraw",
|
||||
icon: "pen-tool",
|
||||
href: "https://draw.housh.dev",
|
||||
description: "A drawing utility."
|
||||
)
|
||||
HomeLink.external(
|
||||
"Excalidraw",
|
||||
icon: "pen-tool",
|
||||
href: "https://draw.housh.dev",
|
||||
description: "A drawing utility."
|
||||
)
|
||||
|
||||
HomeLink.external(
|
||||
"Gitea",
|
||||
icon: "git-branch",
|
||||
href: "https://git.housh.dev/explore/repos",
|
||||
description: "Source code."
|
||||
)
|
||||
HomeLink.external(
|
||||
"Gitea",
|
||||
icon: "git-branch",
|
||||
href: "https://git.housh.dev/explore/repos",
|
||||
description: "Explore source code."
|
||||
)
|
||||
|
||||
HomeLink.external(
|
||||
"Unifi Console",
|
||||
icon: "earth",
|
||||
href: "https://unifi.ui.com",
|
||||
description: "Network management."
|
||||
)
|
||||
HomeLink.external(
|
||||
"Unifi Console",
|
||||
icon: "earth",
|
||||
href: "https://unifi.ui.com",
|
||||
description: "Network management."
|
||||
)
|
||||
|
||||
HomeLink.external(
|
||||
"Legacy Purchase Orders",
|
||||
icon: "file-archive",
|
||||
href: "https://legach-po.housh.dev",
|
||||
description: "Legacy purchase order application (pre-2025)."
|
||||
)
|
||||
}
|
||||
}
|
||||
script(src: "https://unpkg.com/lucide@latest")
|
||||
Node.raw("""
|
||||
|
||||
Reference in New Issue
Block a user