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) <noreply@anthropic.com>
8 lines
314 B
Bash
Executable file
8 lines
314 B
Bash
Executable file
#!/bin/bash
|
|
# deploy.sh — rebuild ASW site from latest main
|
|
set -euo pipefail
|
|
cd ~/projects/asw
|
|
git pull origin main --ff-only
|
|
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
|