Sorting articles within each month
Fabio Cevasco h3rald@h3rald.com
Sat, 16 Mar 2024 15:04:53 +0100
1 files changed,
8 insertions(+),
1 deletions(-)
jump to
M
rules.min
→
rules.min
@@ -30,10 +30,17 @@ "articles.html" %path
".html" %ext "ARTICLES" %title "page" %content-type - ARCHIVES dvalues (/timestamp :a /timestamp :b a b >) sort %archives + ARCHIVES dvalues (/code :a /code :b a b >) sort %archives projects-count %projects-count articles-count %articles-count grimoire-count %grimoire-count + ; sort articles within each archive + ( + :archive + archive /articles + (/timestamp :a /timestamp :b + a b >) sort %articles + ) map ; TODO: why processing twice?? dup "_archives" swap mustache %contents dup "page" swap mustache :page