hugo-academic-mirror/scripts/view_demo.sh

12 lines
410 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env zsh
# View the demo site on any local devices by binding the local IP on port 1315.
2023-11-08 00:09:38 +01:00
# Run this script from the root Hugo Blox dir.
HUGO_THEME=hugo-blox-builder hugo \
--source exampleSite --themesDir ../../ \
--bind=0.0.0.0 -p 1315 --baseURL=http://0.0.0.0:1315 \
--i18n-warnings --minify -e "development" \
server
2023-11-08 00:09:38 +01:00
#HUGO_THEME=hugo-blox-builder hugo convert toYAML --unsafe --themesDir ../../