add support for tags

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-05-01 19:32:14 +02:00
parent 16d17f7ed7
commit f653ed944f
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
6 changed files with 47 additions and 1 deletions

View file

@ -8,6 +8,7 @@
alt: "A drawing of a blue-ish round-ish platypus with big eyes, holding a laptop. This platypus is quite cute, but I might be biased.",
),
author: "Me!",
tags: ("test", "html/css", "typst"),
description: "Test of the TTT template",
date: datetime(year: 1942, month: 4, day: 1),
)
@ -171,6 +172,11 @@ thead {
summary(
url: "http://test.example.com",
title: "Card " + str(perm.at(i)),
tags: if perm.at(i) == 20 {
("tag2", "tag5","loooooonnnnnnnnnnnnnng-tag","some-tag","some-other-tag")
} else {
(2, 3, 5, 7).filter(j => calc.rem(perm.at(i), j) == 0).map(j => "tag" + str(j))
},
preview-image: summ.preview-image,
img-copyright: if calc.rem(i, 3) == 0 { [Histausse ] } else { none },
author: "Me!",