blob: 4906061de3f4916221b29481893164b75ff51eda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
echo "Hugo env:"
hugo env
cd _script
BASEURL=${BASEURL:-http://localhost:1313}
./generateThemeSite.sh ${BASEURL}
code=$?
if [ $code -ne 0 ]; then
echo "generate theme site failed: Exit status $code"
exit 1
fi
echo "Building site to public with baseURL ${BASEURL}..."
hugo --minify --quiet -s hugoThemeSite/themeSite -b ${BASEURL}
code=$?
if [ $code -ne 0 ]; then
echo "build theme site failed: Exit status $code"
exit 1
fi
cd ..
echo "Done!"
|