summaryrefslogtreecommitdiffhomepage
path: root/create/content.go
diff options
context:
space:
mode:
authordigitalcraftsman <[email protected]>2015-11-23 20:44:59 +0100
committerSteve Francia <[email protected]>2016-01-01 14:46:40 -0500
commit47587321d9a153ef4158739e8f238c850fb1ee7a (patch)
tree1fc48bfcfe2c93096f0e84b9dcc291ef49606b71 /create/content.go
parent40fccf2251a7187f002165653d42178e2f53a49b (diff)
downloadhugo-47587321d9a153ef4158739e8f238c850fb1ee7a.tar.gz
hugo-47587321d9a153ef4158739e8f238c850fb1ee7a.zip
Add themesDir option to configuration
themesDir can be used to change the default path of the themes folder. Fixes 1556
Diffstat (limited to 'create/content.go')
-rw-r--r--create/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go
index 3607e0139..6d38bbde1 100644
--- a/create/content.go
+++ b/create/content.go
@@ -132,7 +132,7 @@ func FindArchetype(kind string) (outpath string) {
search := []string{helpers.AbsPathify(viper.GetString("archetypeDir"))}
if viper.GetString("theme") != "" {
- themeDir := filepath.Join(helpers.AbsPathify("themes/"+viper.GetString("theme")), "/archetypes/")
+ themeDir := filepath.Join(helpers.AbsPathify(viper.GetString("themesDir")+"/"+viper.GetString("theme")), "/archetypes/")
if _, err := os.Stat(themeDir); os.IsNotExist(err) {
jww.ERROR.Println("Unable to find archetypes directory for theme :", viper.GetString("theme"), "in", themeDir)
} else {