mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
hugofs: Add includeFiles and excludeFiles to mount configuration
Fixes #9042
This commit is contained in:
parent
94a5bac5b2
commit
471ed91c60
15 changed files with 797 additions and 133 deletions
|
@ -74,7 +74,7 @@ func NewSourceSpec(ps *helpers.PathSpec, inclusionFilter *glob.FilenameFilter, f
|
|||
}
|
||||
}
|
||||
shouldInclude := func(filename string) bool {
|
||||
if !inclusionFilter.Match(filename) {
|
||||
if !inclusionFilter.Match(filename, false) {
|
||||
return false
|
||||
}
|
||||
for _, r := range regexps {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue