all repos — h3rald @ 221e2457dc3e7cb4944aea707d153693d79abd7e

The sources of https://h3rald.com

Implementing /days
Fabio Cevasco h3rald@h3rald.com
Sun, 16 Feb 2025 15:03:02 +0100
commit

221e2457dc3e7cb4944aea707d153693d79abd7e

parent

ee627aa457e3e7ca9f4de89dc866d669fed51c8e

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

jump to
M rules.minrules.min

@@ -374,13 +374,24 @@ symbol process-days-asset

(dict :meta ==>) ( meta.id "\..+$" "" replace :date - ;TODO + { + date :date + } :day + (DAYS date dict.has) + (DAYS date dict.get @day) + when (meta.id "\.txt$" match?) ( - + meta input-fread :day.text + ) + ( + (meta.ext "\.(png|jpe?g|webp|gif)" match?) + (meta.id :day.image) + when + meta output-cp ) - (output-cp) if + DAYS day date dict.set ) ) :: ;; Process days assets