mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
content: Fix typos
This commit is contained in:
@@ -19,19 +19,19 @@ exec.allow
|
|||||||
: (`[]string`) A slice of [regular expressions](g) matching the names of external executables that Hugo is allowed to run.
|
: (`[]string`) A slice of [regular expressions](g) matching the names of external executables that Hugo is allowed to run.
|
||||||
|
|
||||||
exec.osEnv
|
exec.osEnv
|
||||||
: (`[]string`) A slice of [regular expression](g) matching the names of operating system environment variables that Hugo is allowed to access.
|
: (`[]string`) A slice of [regular expressions](g) matching the names of operating system environment variables that Hugo is allowed to access.
|
||||||
|
|
||||||
funcs.getenv
|
funcs.getenv
|
||||||
: (`[]string`) A slice of [regular expression](g) matching the names of operating system environment variables that Hugo is allowed to access with the [`os.Getenv`] function.
|
: (`[]string`) A slice of [regular expressions](g) matching the names of operating system environment variables that Hugo is allowed to access with the [`os.Getenv`] function.
|
||||||
|
|
||||||
http.methods
|
http.methods
|
||||||
: (`[]string`) A slice of [regular expression](g) matching the HTTP methods that the [`resources.GetRemote`] function is allowed to use.
|
: (`[]string`) A slice of [regular expressions](g) matching the HTTP methods that the [`resources.GetRemote`] function is allowed to use.
|
||||||
|
|
||||||
http.mediaTypes
|
http.mediaTypes
|
||||||
: (`[]string`) Applicable to the `resources.GetRemote` function, a slice of [regular expression](g) matching the `Content-Type` in HTTP responses that Hugo trusts, bypassing file content analysis for media type detection.
|
: (`[]string`) Applicable to the `resources.GetRemote` function, a slice of [regular expressions](g) matching the `Content-Type` in HTTP responses that Hugo trusts, bypassing file content analysis for media type detection.
|
||||||
|
|
||||||
http.urls
|
http.urls
|
||||||
: (`[]string`) A slice of [regular expression](g) matching the URLs that the `resources.GetRemote` function is allowed to access.
|
: (`[]string`) A slice of [regular expressions](g) matching the URLs that the `resources.GetRemote` function is allowed to access.
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> Setting an allow list to the string `none` will completely disable the associated feature.
|
> Setting an allow list to the string `none` will completely disable the associated feature.
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ mediaTypes = ['^image/avif$','^application/vnd\.api\+json$']
|
|||||||
Note that the entry above is:
|
Note that the entry above is:
|
||||||
|
|
||||||
- An _addition_ to the allowlist; it does not _replace_ the allowlist
|
- An _addition_ to the allowlist; it does not _replace_ the allowlist
|
||||||
- An array of [regular expression](g)
|
- An array of [regular expressions](g)
|
||||||
|
|
||||||
[allowlist]: https://en.wikipedia.org/wiki/Whitelist
|
[allowlist]: https://en.wikipedia.org/wiki/Whitelist
|
||||||
[Content-Type]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
[Content-Type]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
||||||
|
|||||||
Reference in New Issue
Block a user