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 'hugolib/gitinfo.go')
-rw-r--r--hugolib/gitinfo.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/hugolib/gitinfo.go b/hugolib/gitinfo.go
index 82baa3250..dfa2b4dc8 100644
--- a/hugolib/gitinfo.go
+++ b/hugolib/gitinfo.go
@@ -20,17 +20,16 @@ import (
"github.com/bep/gitmap"
"github.com/spf13/hugo/helpers"
- "github.com/spf13/viper"
)
func (h *HugoSites) assembleGitInfo() {
- if !viper.GetBool("enableGitInfo") {
+ if !h.Cfg.GetBool("enableGitInfo") {
return
}
var (
- workingDir = viper.GetString("workingDir")
- contentDir = viper.GetString("contentDir")
+ workingDir = h.Cfg.GetString("workingDir")
+ contentDir = h.Cfg.GetString("contentDir")
)
gitRepo, err := gitmap.Map(workingDir, "")