From 882d678bbf2a149a90e2aed4341d7f6fc2cb394d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 24 Jul 2019 21:46:24 +0200 Subject: modules: Rename disabled => disable in config --- modules/collect.go | 2 +- modules/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/collect.go b/modules/collect.go index f57b4d04b..9f3eb99f1 100644 --- 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 index b084863d4..818241c94 100644 --- 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 } -- cgit v1.2.3