diff --git a/scripts/dev.sh b/scripts/dev.sh index 57a7c99..a83caf8 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -5,9 +5,20 @@ set -e cd "$(dirname "$0")/.." ROOT="$(pwd)" -# Ensure content directories exist at repo root +# Ensure content directories and symlinks exist mkdir -p pages stories +mkdir -p site/src/content/entries +LINK="$ROOT/site/src/content/entries/_wiki" +if [ ! -L "$LINK" ]; then + ln -sf "$ROOT/pages" "$LINK" +fi + +BLOG_LINK="$ROOT/site/src/content/blog" +if [ ! -L "$BLOG_LINK" ]; then + ln -sf "$ROOT/stories" "$BLOG_LINK" +fi + # Start edit sidecar if requested if [[ "$*" == *"--edit"* ]]; then echo "Starting edit sidecar on :8001..." diff --git a/site b/site index 39bd74d..3ccd551 160000 --- a/site +++ b/site @@ -1 +1 @@ -Subproject commit 39bd74d2b701b5fd18436a9e1f3d14d9086579f7 +Subproject commit 3ccd5511498db9354e32db8bb4b147499154b5aa