Restore symlink approach; revert failed absolute-path experiment
This commit is contained in:
+12
-1
@@ -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..."
|
||||
|
||||
+1
-1
Submodule site updated: 39bd74d2b7...3ccd551149
Reference in New Issue
Block a user