Ok
This commit is contained in:
parent
05a6384900
commit
4ac04a27a0
21
site.moon
21
site.moon
@ -231,17 +231,30 @@ sitegen.create =>
|
|||||||
@do_unpack = (arg, _) =>
|
@do_unpack = (arg, _) =>
|
||||||
unpack {"three", "five", "seven"}
|
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={}, _) =>
|
@just_render_the_damn_list = (arg={}, _) =>
|
||||||
posts = [listing_info post for post in *get_posts @, arg.limit]
|
posts = [listing_info post for post in *get_posts @, arg.limit]
|
||||||
|
|
||||||
html.build ->
|
html.build ->
|
||||||
import section, h3, time, a from tag
|
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 {
|
section {
|
||||||
h3 { a { title, href: url }}
|
h3 { a { title, href: url }}
|
||||||
time { publish_date }
|
time { pretty, datetime: iso }
|
||||||
"—", blurb, a { "Read post →", href: url }
|
"—", blurb, a { "Read post →", class: "read-post-link", href: url }
|
||||||
}
|
}
|
||||||
|
|
||||||
-- [tag.section { "hoh" } for post in *posts]
|
-- [tag.section { "hoh" } for post in *posts]
|
||||||
@ -278,7 +291,7 @@ sitegen.create =>
|
|||||||
target: target(path, "/posts")
|
target: target(path, "/posts")
|
||||||
template: "post"
|
template: "post"
|
||||||
is_a: "post"
|
is_a: "post"
|
||||||
publish_date: publish_date path
|
publish_date: { extract_date(path), publish_date path }
|
||||||
id: extract_id path
|
id: extract_id path
|
||||||
|
|
||||||
add "index.html", title: "Catalin Mititiuc"
|
add "index.html", title: "Catalin Mititiuc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user