feat(mestizo.monster): update upload script to support 11ty better

This commit is contained in:
taco 2026-04-10 22:20:00 -04:00
parent cb1681db10
commit 2b83bc00b9
No known key found for this signature in database
2 changed files with 10 additions and 5 deletions

@ -1 +1 @@
Subproject commit b0955134ebb4a2ea959f1cca1719fc99be0ce55a Subproject commit 344058c9917a3ca2cf8d586bdc26c7a68f2b961d

View file

@ -9,15 +9,20 @@ CONFIG_FILE="$1/upload.conf"
. "$CONFIG_FILE" . "$CONFIG_FILE"
# export variable from config file # export variable from config file
export NEOCITIES_API_KEY export NEOCITIES_KEY
# build site # build site
if [ "$ENGINE" = "hugo" ]; then if [ "$ENGINE" = "hugo" ]; then
hugo -s "$1" -d "../$SITE_DIR" hugo -s "$1" -d "../$SITE_DIR"
fi fi
# push index last to ensure resources are available if [ "$ENGINE" = "eleventy" ]; then
neocities push -e index.html "$SITE_DIR" currentdir=$(pwd)
neocities upload "$SITE_DIR/index.html" cd $1
npx @11ty/eleventy
cd $SITE_DIR
neocities upload *
cd $currentdir
fi
rm -fr $SITE_DIR rm -fr $SITE_DIR