all repos — h3rald @ fd95a5643dac036ec25cf1cab34f6e55fac97eb5

The sources of https://h3rald.com

Now including only non-draft articles in count.
h3rald h3rald@h3rald.com
Sun, 16 Feb 2025 10:32:27 +0100
commit

fd95a5643dac036ec25cf1cab34f6e55fac97eb5

parent

e2ef473717c5c40e79d84cf41ad0f243efe29d9f

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

jump to
M rules.minrules.min

@@ -6,7 +6,8 @@ {} :HOME

() :PROJECTS () :SPELLS -"contents/articles" sys.ls size :articles-count +;"contents/articles" sys.ls size :articles-count +"contents/articles" 0 :articles-count 17 :projects-count "contents/grimoire" sys.ls size :grimoire-count

@@ -358,6 +359,7 @@ (

content "id" dict.get :id (content "content-type" dict.get "project" ==) (content PROJECTS append @PROJECTS) when (content "content-type" dict.get "spell" ==) (content SPELLS append @SPELLS) when + (content "content-type" dict.get "article" ==) (articles-count 1 + @articles-count) when content projects-count "projects-count" dict.set articles-count "articles-count" dict.set