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:
Diffstat (limited to 'helpers/path.go')
-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 ""
}