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:
-rw-r--r--hugolib/hugo_modules_test.go2
-rw-r--r--modules/collect.go2
-rw-r--r--modules/config.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/hugo_modules_test.go b/hugolib/hugo_modules_test.go
index c4bbafe77..dc0da2e1c 100644
--- a/hugolib/hugo_modules_test.go
+++ b/hugolib/hugo_modules_test.go
@@ -307,7 +307,7 @@ workingDir="/site"
path="a"
[[module.imports]]
path="b"
-disabled=true
+disable=true
`)
diff --git a/modules/collect.go b/modules/collect.go
index f57b4d04b..9f3eb99f1 100644
--- a/modules/collect.go
+++ b/modules/collect.go
@@ -284,7 +284,7 @@ func (c *collector) addAndRecurse(owner *moduleAdapter, disabled bool) error {
}
for _, moduleImport := range moduleConfig.Imports {
- disabled := disabled || moduleImport.Disabled
+ disabled := disabled || moduleImport.Disable
if !c.isSeen(moduleImport.Path) {
tc, err := c.add(owner, moduleImport, disabled)
diff --git a/modules/config.go b/modules/config.go
index b084863d4..818241c94 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -301,7 +301,7 @@ func (v HugoVersion) IsValid() bool {
type Import struct {
Path string // Module path
IgnoreConfig bool // Ignore any config.toml found.
- Disabled bool // Turn off this module.
+ Disable bool // Turn off this module.
Mounts []Mount
}