From 2b83bc00b9752b03079ad3f53ce7841670cd1c4c Mon Sep 17 00:00:00 2001 From: taco Date: Fri, 10 Apr 2026 22:20:00 -0400 Subject: [PATCH] feat(mestizo.monster): update upload script to support 11ty better --- mestizo.monster | 2 +- upload.sh | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/mestizo.monster b/mestizo.monster index b095513..344058c 160000 --- a/mestizo.monster +++ b/mestizo.monster @@ -1 +1 @@ -Subproject commit b0955134ebb4a2ea959f1cca1719fc99be0ce55a +Subproject commit 344058c9917a3ca2cf8d586bdc26c7a68f2b961d diff --git a/upload.sh b/upload.sh index 7594e3c..fc972e5 100755 --- a/upload.sh +++ b/upload.sh @@ -9,15 +9,20 @@ CONFIG_FILE="$1/upload.conf" . "$CONFIG_FILE" # export variable from config file -export NEOCITIES_API_KEY +export NEOCITIES_KEY # build site if [ "$ENGINE" = "hugo" ]; then hugo -s "$1" -d "../$SITE_DIR" fi -# push index last to ensure resources are available -neocities push -e index.html "$SITE_DIR" -neocities upload "$SITE_DIR/index.html" +if [ "$ENGINE" = "eleventy" ]; then + currentdir=$(pwd) + cd $1 + npx @11ty/eleventy + cd $SITE_DIR + neocities upload * + cd $currentdir +fi rm -fr $SITE_DIR