Skip to content

Commit

Permalink
modules: Rename disabled => disable in config
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 24, 2019
1 parent fa28df1 commit 882d678
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hugolib/hugo_modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ workingDir="/site"
path="a"
[[module.imports]]
path="b"
disabled=true
disable=true
`)
Expand Down
2 changes: 1 addition & 1 deletion modules/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion modules/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 882d678

Please sign in to comment.