diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-09-09 20:08:03 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-09-10 09:47:05 +0300 |
commit | 20af9a078189ce1e92a1d2047c90fba2a4e91827 (patch) | |
tree | 2249411bcbdf6318dc96a12fde816178bed364e2 /modules/config.go | |
parent | 9a1e6d15a31ec667b2ff9cf20e43b1daca61e004 (diff) |
modules: Add ignoreImports to module imports config
Fixes #7646
Diffstat (limited to 'modules/config.go')
-rw-r--r-- | modules/config.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/config.go b/modules/config.go index a50845df3..5e95f0ac1 100644 --- a/modules/config.go +++ b/modules/config.go @@ -301,10 +301,12 @@ func (v HugoVersion) IsValid() bool { } type Import struct { - Path string // Module path - IgnoreConfig bool // Ignore any config.toml found. - Disable bool // Turn off this module. - Mounts []Mount + Path string // Module path + IgnoreConfig bool // Ignore any config in config.toml (will still folow imports). + IgnoreImports bool // Do not follow any configured imports. + NoVendor bool // Never vendor this import (only allowed in main project). + Disable bool // Turn off this module. + Mounts []Mount } type Mount struct { |