mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
hugofs: Add includeFiles and excludeFiles to mount configuration
Fixes #9042
This commit is contained in:
1 parent
0c9ee0a04c
commit
57667bae61
1 file changed
+12
@@ -155,3 +155,15 @@ target
|
|||||||
lang
|
lang
|
||||||
: The language code, e.g. "en". Only relevant for `content` mounts, and `static` mounts when in multihost mode.
|
: The language code, e.g. "en". Only relevant for `content` mounts, and `static` mounts when in multihost mode.
|
||||||
|
|
||||||
|
includeFiles (string or slice)
|
||||||
|
: One or more [glob](https://github.com/gobwas/glob) patterns matching files or directories to include. If `excludeFiles` is not set, the files matching `includeFiles` will be the files mounted.
|
||||||
|
|
||||||
|
The glob patterns are matched to the filenames starting from the `source` root, they should have Unix styled slashes even on Windows, `/` matches the mount root and `**` can be used as a super-asterisk to match recursively down all directories, e.g `/posts/**.jpg`.
|
||||||
|
|
||||||
|
The search is case-insensitive.
|
||||||
|
|
||||||
|
{{< new-in "0.89.0" >}}
|
||||||
|
|
||||||
|
excludeFiles (string or slice)
|
||||||
|
: One or more glob patterns matching files to exclude.
|
||||||
|
|
||||||
Reference in new issue
Block a user