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: [
|
writers: [
|
||||||
.itemWriter(swim(renderArticle)),
|
.itemWriter(swim(renderArticle)),
|
||||||
.listWriter(swim(renderArticles)),
|
.listWriter(swim(renderArticles)),
|
||||||
.listWriter(renderJson, output: "../static/search.json"),
|
|
||||||
.tagWriter(swim(renderTag), tags: \.metadata.tags),
|
.tagWriter(swim(renderTag), tags: \.metadata.tags),
|
||||||
.yearWriter(swim(renderYear)),
|
.yearWriter(swim(renderYear)),
|
||||||
// Atom feed for all articles, and a feed per tag
|
// 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 {
|
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") {
|
span(class: "border-r border-gray pr-2 mr-2") {
|
||||||
article.getDate().formatted("MMMM dd, yyyy")
|
article.getDate().formatted("MMMM dd, yyyy")
|
||||||
}
|
}
|
||||||
|
|
||||||
if let updated = article.getUpdatedDate() {
|
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"))"
|
"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
|
article.metadata.tags.sorted().enumerated().map { index, tag in
|
||||||
Node.fragment([
|
Node.fragment([
|
||||||
%tagPrefix(index: index, totalTags: article.metadata.tags.count),
|
%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)/") {
|
%a(class: "text-orange-400 [&:hover]:border-b border-green-400", href: "/articles/tag/\(tag.slugified)/") {
|
||||||
tag
|
tag
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ func renderHome(body: String) -> Node {
|
|||||||
div(class: "my-24 font-avenir leading-[1.25] font-thin text-center [&>h1>strong]:font-bold") {
|
div(class: "my-24 font-avenir leading-[1.25] font-thin text-center [&>h1>strong]:font-bold") {
|
||||||
Node.raw(body)
|
Node.raw(body)
|
||||||
}
|
}
|
||||||
|
div {
|
||||||
|
h2 { "Quick Links" }
|
||||||
div(class: "grid lg:grid-cols-2 gap-6") {
|
div(class: "grid lg:grid-cols-2 gap-6") {
|
||||||
HomeLink.internal(
|
HomeLink.internal(
|
||||||
"Articles",
|
"Articles",
|
||||||
@@ -63,7 +65,7 @@ func renderHome(body: String) -> Node {
|
|||||||
"Gitea",
|
"Gitea",
|
||||||
icon: "git-branch",
|
icon: "git-branch",
|
||||||
href: "https://git.housh.dev/explore/repos",
|
href: "https://git.housh.dev/explore/repos",
|
||||||
description: "Source code."
|
description: "Explore source code."
|
||||||
)
|
)
|
||||||
|
|
||||||
HomeLink.external(
|
HomeLink.external(
|
||||||
@@ -72,6 +74,14 @@ func renderHome(body: String) -> Node {
|
|||||||
href: "https://unifi.ui.com",
|
href: "https://unifi.ui.com",
|
||||||
description: "Network management."
|
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")
|
script(src: "https://unpkg.com/lucide@latest")
|
||||||
Node.raw("""
|
Node.raw("""
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ section: home
|
|||||||
|
|
||||||
# Home
|
# Home
|
||||||
|
|
||||||
## Documentation Site / Dashboard
|
## Documentation Site
|
||||||
|
|
||||||
Click on one of the links below or search for an article using the search
|
Click on one of the links below or search for an article using the search
|
||||||
feature.
|
feature.
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user