Welcome to mirror list, hosted at ThFree Co, Russian Federation.

buildThemeSite.sh - github.com/gohugoio/hugoThemes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e2851e2f7ac4508609c580dbdce2b26f6039026b (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
#!/bin/bash

git submodule update --init --recursive

export HUGO="hugo"

if ((${#REPOSITORY_URL[@]})); then
	# Netlify
	export HUGO="hugo_0.19"
fi

echo "Using ${HUGO} ..."

cd _script

BASEURL=${BASEURL:-http://localhost:1313}

./generateThemeSite.sh ${BASEURL}

echo "Building site to public with baseURL ${BASEURL}..."

${HUGO} --quiet -s hugoThemeSite/themeSite -b ${BASEURL}

cd ..

echo "Done!"