From defcb22cc4dd2dc84a33e77df05aa525f476b700 Mon Sep 17 00:00:00 2001 From: Vigilio Desto Date: Sun, 12 Apr 2026 13:54:34 +0200 Subject: [PATCH] Fix Hugo build: nav.html used invalid hugo.Data syntax, fix deploy.sh path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nav.html: hugo.Data.nav.items → .Site.Data.nav.items (hugo.Data is not a valid accessor for data files in any Hugo version). deploy.sh: run hugo from site/ subdir, output to public/ at repo root where nginx expects it. Use /usr/local/bin/hugo (v0.147.4) explicitly. Co-Authored-By: Claude Opus 4.6 (1M context) --- deploy.sh | 7 +++---- site/layouts/partials/nav.html | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index b71b199..1fd6cce 100755 --- a/deploy.sh +++ b/deploy.sh @@ -3,7 +3,6 @@ set -euo pipefail cd ~/projects/asw git pull origin main --ff-only -npm ci --prefer-offline 2>/dev/null -npx postcss assets/css/main.css -o assets/css/asw-built.css -hugo -echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] Deploy complete" >> /tmp/asw-deploy.log +cd site +/usr/local/bin/hugo --destination ../public +echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] Deploy complete ($(ls ../public/**/*.html 2>/dev/null | wc -l) pages)" >> /tmp/asw-deploy.log diff --git a/site/layouts/partials/nav.html b/site/layouts/partials/nav.html index 9ed7e44..71528c8 100644 --- a/site/layouts/partials/nav.html +++ b/site/layouts/partials/nav.html @@ -1,7 +1,7 @@