mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 09:05:08 +02:00
badges
This commit is contained in:
11
build.sh
11
build.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user