This commit is contained in:
2025-07-22 21:31:00 +02:00
parent 590f92f97e
commit 8053caf1db
8 changed files with 53 additions and 3 deletions

View File

@@ -24,4 +24,15 @@ page "index.typ"
page "compiler-pattern-matching.typ"
page "article-favicon.typ"
rm -rf res/badges && mkdir res/badges && typst query common.typ "<meta-people>" --root . --input query=true --field value --one | jq -r . | jq -r 'to_entries[] | [.key,.value.badge] | @tsv' | awk '{ if ($1 == "alex") { system("cp res/badge.png res/badges/alex") } else { system("curl "$2" > res/badges/"$1) } }'
for b in res/badges/*; do
bn=$(basename $b)
if [ -f res/badge_sum_$bn ]; then
cat res/badge_sum_$bn | sha256sum -c
else
echo WRITING CHECK SUM OF $bn
sha256sum $b > res/badge_sum_$bn
fi
done
cp build/index.typ.desktop.html build/index.html