This commit is contained in:
Catalin Constantin Mititiuc 2025-05-23 13:28:05 -07:00
parent 05a6384900
commit 4ac04a27a0

View File

@ -231,17 +231,30 @@ sitegen.create =>
@do_unpack = (arg, _) =>
unpack {"three", "five", "seven"}
-- <section>
-- <h3>
-- <a href="/posts/build-a-neovim-qt-appimage-from-source">
-- Build A Neovim Qt AppImage from Source
-- </a>
-- </h3>
--
-- <time datetime="2024-01-01">Jan 1, 2024</time>
-- — Building an AppImage package from source allows us to run the latest version of Neovim-QT on our machine running the Debian Linux distribution.
-- <a href="/posts/build-a-neovim-qt-appimage-from-source" class="read-post-link">
-- Read post →
-- </a>
-- </section>
@just_render_the_damn_list = (arg={}, _) =>
posts = [listing_info post for post in *get_posts @, arg.limit]
html.build ->
import section, h3, time, a from tag
return for { :title, :publish_date, :url, :blurb } in *posts
return for { :title, :url, :blurb, publish_date: { iso, pretty }} in *posts
section {
h3 { a { title, href: url }}
time { publish_date }
"—", blurb, a { "Read post →", href: url }
time { pretty, datetime: iso }
"—", blurb, a { "Read post →", class: "read-post-link", href: url }
}
-- [tag.section { "hoh" } for post in *posts]
@ -278,7 +291,7 @@ sitegen.create =>
target: target(path, "/posts")
template: "post"
is_a: "post"
publish_date: publish_date path
publish_date: { extract_date(path), publish_date path }
id: extract_id path
add "index.html", title: "Catalin Mititiuc"