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-09-12 23:14:55 +0300
committerAnthony Fok <foka@debian.org>2018-09-12 23:22:46 +0300
commit3e9282e1925890a2627392ae60d1015212c8134c (patch)
tree2b23587b1964003afd58d736e0e706c204a6d13b
parent484cbffb9645bff0d7a091cba000f58178836f4b (diff)
Re-apply temporary workaround to generateThemeSite.sh
@digitalcraftsman was trying to re-apply this workaround in commit 3068f640e17a544542be17e4ca842ceb5acfb2a9, but for some reason that commit contains whitespace cleanup only. The following commit message was from that commit: Setting the theme path via the `-t THEME` flag isn't recognized and still requires to use the HUGO_THEME env variable as workaround. See gohugoio/hugoThemes#412 See gohugoio/hugo#5061 See gohugoio/hugo#4851 This reverts commit 0b4e98b96f0ee4aee3fd22bc8a7a5e65869d255f.
-rwxr-xr-x_script/generateThemeSite.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/_script/generateThemeSite.sh b/_script/generateThemeSite.sh
index b4ce6c1..ba1f036 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 --quiet -s exampleSite2 -d ${demoDestination} -t $x -b $BASEURL/theme/$x/
+ HUGO_THEME=${x} hugo --quiet -s exampleSite2 -d ${demoDestination} -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 --quiet -s exampleSite --config=${themeConfig} -d ${demoDestination} -t $x -b $BASEURL/theme/$x/
+ HUGO_THEME=${x} hugo --quiet -s exampleSite --config=${themeConfig} -d ${demoDestination} -b $BASEURL/theme/$x/
if [ $? -ne 0 ]; then
echo "FAILED to create demo site for $x"
rm -rf ${demoDestination}