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

github.com/gohugoio/hugoThemes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2018-08-11 15:02:44 +0300
committerAnthony Fok <foka@debian.org>2018-08-11 15:02:44 +0300
commit0b4e98b96f0ee4aee3fd22bc8a7a5e65869d255f (patch)
tree57bcad4afbd9f9aed482450dfe141b6fd6800c2d
parentf7c4da83eb5010053a41636b47393f5cfe08f55d (diff)
Revert "Apply temporary workaround to generateThemeSite.sh"
The `-t THEME` flag has been fixed in Hugo 0.45, so it is no longer necessary to use the HUGO_THEME workaround. See gohugoio/hugo#4851. This reverts commit 2d2da9b38eb6cde963dc8017295824c960e0e4f8.
-rwxr-xr-x_script/generateThemeSite.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/_script/generateThemeSite.sh b/_script/generateThemeSite.sh
index 636eeec..0387efd 100755
--- a/_script/generateThemeSite.sh
+++ b/_script/generateThemeSite.sh
@@ -182,7 +182,7 @@ for x in `find ${themesDir} -mindepth 1 -maxdepth 1 -type d -not -path "*.git" -
ln -s ${themesDir}/$x/exampleSite ${siteDir}/exampleSite2
ln -s ${themesDir} ${siteDir}/exampleSite2/themes
destionation="../themeSite/static/theme/$x/"
- HUGO_THEME=${x} hugo --quiet -s exampleSite2 -d ${demoDestination} -b $BASEURL/theme/$x/
+ hugo --quiet -s exampleSite2 -d ${demoDestination} -t $x -b $BASEURL/theme/$x/
if [ $? -ne 0 ]; then
echo "FAILED to create exampleSite for $x"
errorCounter=$((errorCounter + 1))
@@ -210,7 +210,7 @@ for x in `find ${themesDir} -mindepth 1 -maxdepth 1 -type d -not -path "*.git" -
cat themeSite/templates/${paramsConfig} >>${themeConfig}
echo "Building site for theme ${x} using config \"${themeConfig}\" to ${demoDestination}"
- HUGO_THEME=${x} hugo --quiet -s exampleSite --config=${themeConfig} -d ${demoDestination} -b $BASEURL/theme/$x/
+ hugo --quiet -s exampleSite --config=${themeConfig} -d ${demoDestination} -t $x -b $BASEURL/theme/$x/
if [ $? -ne 0 ]; then
echo "FAILED to create demo site for $x"
rm -rf ${demoDestination}