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:
authorDigitalcraftsman <digitalcraftsman@protonmail.com>2020-06-08 19:04:44 +0300
committerDigitalcraftsman <digitalcraftsman@protonmail.com>2020-06-10 17:11:24 +0300
commit52c400c1a75a76f5d058b8c20b16975405faafd7 (patch)
tree1849d188f0a32e8ae9048fa0134b4b2a69ae587b
parent13a9cdef65552176a315d267a6a8b701c10635da (diff)
Add alternative source for Hugo themes
With HUGO_THEMES_REPO an alternative path to Hugo themes can be specified. Intended to speedup build times during theme submission reviews as already added themes will be ignored.
-rwxr-xr-x_script/generateThemeSite.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/_script/generateThemeSite.sh b/_script/generateThemeSite.sh
index b7ad46d..4097411 100755
--- a/_script/generateThemeSite.sh
+++ b/_script/generateThemeSite.sh
@@ -42,15 +42,15 @@ popd() {
# Load the repositories from the provided environment variables or our defaults
HUGO_THEME_SITE_REPO=${HUGO_THEME_SITE_REPO:-https://github.com/gohugoio/hugoThemesSite.git}
HUGO_BASIC_EXAMPLE_REPO=${HUGO_BASIC_EXAMPLE_REPO:-https://github.com/gohugoio/hugoBasicExample.git}
-#HUGO_THEMES_REPO=${HUGO_THEMES_REPO:-https://github.com/gohugoio/hugoThemes.git}
-#echo "Using ${HUGO_THEMES_REPO} for themes"
echo "Using ${HUGO_THEME_SITE_REPO} for theme site"
echo "Using ${HUGO_BASIC_EXAMPLE_REPO} for example site"
GLOBIGNORE=.*
siteDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/hugoThemeSite"
-themesDir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+# use HUGO_THEMES_REPO to specify alternative location as source for themes. Intended to speed up
+# build times for theme submission reviews by ignoring already added themes.
+themesDir=${HUGO_THEMES_REPO:-"$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"}
echo "Using themes dir ${themesDir}"
echo "Using site dir ${siteDir}"