diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-07-24 21:46:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-07-24 21:46:24 +0200 |
commit | 882d678bbf2a149a90e2aed4341d7f6fc2cb394d (patch) | |
tree | 375f632136c357190d27fa2f6172f53dc04ab0c7 | |
parent | fa28df1058e0131364cea2e3ac7f80e934d024a1 (diff) |
modules: Rename disabled => disable in config
-rw-r--r-- | hugolib/hugo_modules_test.go | 2 | ||||
-rw-r--r-- | modules/collect.go | 2 | ||||
-rw-r--r-- | modules/config.go | 2 |
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 } |