diff options
author | digitalcraftsman <digitalcraftsman@users.noreply.github.com> | 2015-11-23 22:44:59 +0300 |
---|---|---|
committer | Steve Francia <steve.francia@gmail.com> | 2016-01-01 22:46:40 +0300 |
commit | 47587321d9a153ef4158739e8f238c850fb1ee7a (patch) | |
tree | 1fc48bfcfe2c93096f0e84b9dcc291ef49606b71 /helpers | |
parent | 40fccf2251a7187f002165653d42178e2f53a49b (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.go | 2 |
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 "" } |