Add themesDir option to configuration

themesDir can be used to change the default
path of the themes folder.

Fixes 1556
This commit is contained in:
digitalcraftsman
2015-11-23 20:44:59 +01:00
committed by Steve Francia
parent 40fccf2251
commit 47587321d9
6 changed files with 9 additions and 7 deletions

View File

@@ -495,7 +495,7 @@ func (s *Site) absDataDir() string {
}
func (s *Site) absThemeDir() string {
return helpers.AbsPathify("themes/" + viper.GetString("theme"))
return helpers.AbsPathify(viper.GetString("themesDir") + "/" + viper.GetString("theme"))
}
func (s *Site) absLayoutDir() string {