mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 04:56:24 -04:00
Add link to security policy from getenv.md (#1746)
Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
parent
7b4c517a6c
commit
300fff092e
@ -41,3 +41,6 @@ And then retrieve the values within a template:
|
||||
{{ os.Getenv "MY_VAR1" }} --> foo
|
||||
{{ os.Getenv "MY_VAR2" }} --> bar
|
||||
```
|
||||
|
||||
With Hugo v0.91.0 and later, you must explicitly allow access to environment variables. For details, review [Hugo's Security Policy](/about/security-model/#security-policy). By default, environment variables beginning with `HUGO_` are allowed when using the `os.Getenv` function.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user