mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
modules: Rename disabled => disable in config
This commit is contained in:
parent
fa28df1058
commit
882d678bbf
3 changed files with 3 additions and 3 deletions
|
@ -307,7 +307,7 @@ workingDir="/site"
|
||||||
path="a"
|
path="a"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path="b"
|
path="b"
|
||||||
disabled=true
|
disable=true
|
||||||
|
|
||||||
|
|
||||||
`)
|
`)
|
||||||
|
|
|
@ -284,7 +284,7 @@ func (c *collector) addAndRecurse(owner *moduleAdapter, disabled bool) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, moduleImport := range moduleConfig.Imports {
|
for _, moduleImport := range moduleConfig.Imports {
|
||||||
disabled := disabled || moduleImport.Disabled
|
disabled := disabled || moduleImport.Disable
|
||||||
|
|
||||||
if !c.isSeen(moduleImport.Path) {
|
if !c.isSeen(moduleImport.Path) {
|
||||||
tc, err := c.add(owner, moduleImport, disabled)
|
tc, err := c.add(owner, moduleImport, disabled)
|
||||||
|
|
|
@ -301,7 +301,7 @@ func (v HugoVersion) IsValid() bool {
|
||||||
type Import struct {
|
type Import struct {
|
||||||
Path string // Module path
|
Path string // Module path
|
||||||
IgnoreConfig bool // Ignore any config.toml found.
|
IgnoreConfig bool // Ignore any config.toml found.
|
||||||
Disabled bool // Turn off this module.
|
Disable bool // Turn off this module.
|
||||||
Mounts []Mount
|
Mounts []Mount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue