mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 00:14:05 +00:00
fix: links
This commit is contained in:
1 parent
f9b227c335
commit
9b2e271c7c
828 files changed
+4604
-1123
No files matched your search
@@ -1,9 +1,30 @@
|
||||
#!/usr/bin/env zsh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
exitfn () {
|
||||
trap SIGINT # Restore signal handling for SIGINT
|
||||
cd ../..
|
||||
exit # then exit script.
|
||||
}
|
||||
|
||||
trap "exitfn" INT # Set up SIGINT trap to call function.
|
||||
|
||||
# export HUGO_STATS_PATH="./starters/$1/hugo_stats.json"
|
||||
# printf 'HUGO_STATS_PATH: %s\n' "$HUGO_STATS_PATH"
|
||||
|
||||
# `--source "starters/$1"` won't work for Tailwind Module
|
||||
# due to Hugo limitation requiring Hugo to be run from site dir
|
||||
cd "starters/$1"
|
||||
|
||||
WC_DEMO=true \
|
||||
HUGO_ENVIRONMENT=development \
|
||||
HUGOxPARAMSxCMSxLOCAL_BACKEND=true \
|
||||
HUGO_MODULE_REPLACEMENTS="github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5 -> ../../../modules/wowchemy,
|
||||
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify -> ../../../modules/wowchemy-plugin-netlify,
|
||||
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-reveal -> ../../../modules/wowchemy-plugin-reveal,
|
||||
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms -> ../../../modules/wowchemy-plugin-netlify-cms" \
|
||||
hugo server --panicOnWarning --renderStaticToDisk -F --port 8081 --bind 0.0.0.0 \
|
||||
--source "starters/$1"
|
||||
HUGO_MODULE_REPLACEMENTS="github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 -> ../../../modules/blox-bootstrap,
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify -> ../../../modules/blox-plugin-netlify,
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal -> ../../../modules/blox-plugin-reveal,
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind -> ../../../modules/blox-tailwind,
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms -> ../../../modules/blox-plugin-decap-cms,
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-core -> ../../../modules/blox-core,
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo -> ../../../modules/blox-seo" \
|
||||
hugo server --panicOnWarning --renderStaticToDisk -F --port 8081 --bind 0.0.0.0
|
||||
|
||||
trap SIGINT # Restore signal handling to previous before exit.
|
||||
Reference in new issue
Block a user