hugofs: Add includeFiles and excludeFiles to mount configuration

Fixes #9042
This commit is contained in:
Bjørn Erik Pedersen
2021-10-16 16:24:49 +02:00
parent 94a5bac5b2
commit 471ed91c60
15 changed files with 797 additions and 133 deletions

View File

@@ -379,6 +379,11 @@ type Mount struct {
Lang string // any language code associated with this mount.
// Include only files matching the given Glob patterns (string or slice).
IncludeFiles interface{}
// Exclude all files matching the given Glob patterns (string or slice).
ExcludeFiles interface{}
}
func (m Mount) Component() string {