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

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordigitalcraftsman <digitalcraftsman@users.noreply.github.com>2015-11-23 22:44:59 +0300
committerSteve Francia <steve.francia@gmail.com>2016-01-01 22:46:40 +0300
commit47587321d9a153ef4158739e8f238c850fb1ee7a (patch)
tree1fc48bfcfe2c93096f0e84b9dcc291ef49606b71 /helpers
parent40fccf2251a7187f002165653d42178e2f53a49b (diff)
Add themesDir option to configuration
themesDir can be used to change the default path of the themes folder. Fixes 1556
Diffstat (limited to 'helpers')
-rw-r--r--helpers/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path.go b/helpers/path.go
index bab6c71f9..0fce5690f 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -142,7 +142,7 @@ func GetStaticDirPath() string {
// If there is no theme, returns the empty string.
func GetThemeDir() string {
if ThemeSet() {
- return AbsPathify(filepath.Join("themes", viper.GetString("theme")))
+ return AbsPathify(filepath.Join(viper.GetString("themesDir"), viper.GetString("theme")))
}
return ""
}