Skip to content

Commit 33138fb

Browse files
committed
Add hugo wrapper script
1 parent 1aba55d commit 33138fb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

scripts/run-hugo

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# set -x
4+
set -e
5+
set -u # make emtpy variables an error
6+
7+
cd "$(dirname "$0")"
8+
BASEDIR="$(readlink -f ..)"
9+
10+
echo "Generating landing page via 'hugo'..."
11+
12+
cd "${BASEDIR}/src/hugo"
13+
14+
DESTINATION="${BASEDIR}/PUBLIC"
15+
echo "Using destination dir: $DESTINATION"
16+
17+
hugo --destination "$DESTINATION"
18+
19+
echo "Done."

0 commit comments

Comments
 (0)