Skip to content
Permalink
Browse files

modules: Rename disabled => disable in config

  • Loading branch information...
bep committed Jul 24, 2019
1 parent fa28df1 commit 882d678bbf2a149a90e2aed4341d7f6fc2cb394d
Showing with 3 additions and 3 deletions.
  1. +1 −1 hugolib/hugo_modules_test.go
  2. +1 −1 modules/collect.go
  3. +1 −1 modules/config.go
@@ -307,7 +307,7 @@ workingDir="/site"
path="a"
[[module.imports]]
path="b"
disabled=true
disable=true
`)
@@ -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)
@@ -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
}

0 comments on commit 882d678

Please sign in to comment.
You can’t perform that action at this time.