diff --git a/_script/generateThemeSite.sh b/_script/generateThemeSite.sh index b4ce6c13..ba1f036a 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}