use png for favicon, generate thumbnails in background on build, and return exit status from build

This commit is contained in:
Iris Lightshard 2022-06-05 10:44:47 -06:00
parent 3558233dd5
commit 1e232e2b9a
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 7 additions and 3 deletions

View file

@ -45,8 +45,12 @@ if [ "$1" = "-t" ]; then
shift && ./tw.sh $@ shift && ./tw.sh $@
fi fi
./main ./main
./thumbnailer.sh build exitstatus=$?
if [ "${exitstatus}" = "0" ]; then
./thumbnailer.sh build &
fi
# Cleanup # Cleanup
rm -f ./main rm -f ./main
exit ${exitstatus}

2
main.c
View file

@ -535,7 +535,7 @@ FILE* build(FILE* f, Lexicon* l, char* name, char* srcpath) {
} }
fprintf( fprintf(
f, f,
"<link rel='shortcut icon' href='/favicon.ico'>\n" "<link rel='shortcut icon' href='/favicon.png'>\n"
"<title>" NAME " &mdash; %s</title>\n", "<title>" NAME " &mdash; %s</title>\n",
ismetanav(name) ? "home" : name); ismetanav(name) ? "home" : name);
fputs("</head>\n", f); fputs("</head>\n", f);