modules: Rename disabled => disable in config

This commit is contained in:
Bjørn Erik Pedersen 2019-07-24 21:46:24 +02:00
parent fa28df1058
commit 882d678bbf
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
3 changed files with 3 additions and 3 deletions

View File

@ -307,7 +307,7 @@ workingDir="/site"
path="a"
[[module.imports]]
path="b"
disabled=true
disable=true
`)

View File

@ -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)

View File

@ -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
}