all repos — h3rald @ 42313079d622655aadfcbcda769946e30a5d1fe4

The sources of https://h3rald.com

Sorting articles within each month
Fabio Cevasco h3rald@h3rald.com
Sat, 16 Mar 2024 15:04:53 +0100
commit

42313079d622655aadfcbcda769946e30a5d1fe4

parent

df52061eae8bb17c9aedebbf095c8e44f02b83f1

1 files changed, 8 insertions(+), 1 deletions(-)

jump to
M rules.minrules.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