hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 882d678bbf2a149a90e2aed4341d7f6fc2cb394d
parent fa28df1058e0131364cea2e3ac7f80e934d024a1
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 24 Jul 2019 21:46:24 +0200

modules: Rename disabled => disable in config

Diffstat:
Mhugolib/hugo_modules_test.go | 2+-
Mmodules/collect.go | 2+-
Mmodules/config.go | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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
 }