Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-16 17:24:49 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-20 06:00:17 +0300
commit471ed91c60cd36645794925cb4892cc820eae626 (patch)
treeb78ae6d931e7dd39ccd35a1ed3ff8440f9ef7900 /modules/config.go
parent94a5bac5b29bbba1ca4809752fe3fd04a58547b6 (diff)
hugofs: Add includeFiles and excludeFiles to mount configuration
Fixes #9042
Diffstat (limited to 'modules/config.go')
-rw-r--r--modules/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/config.go b/modules/config.go
index 45a2f22ee..f80a456cf 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -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 {