mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 06:15:30 +00:00
Add link to security policy from getenv.md (#1746)
Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
1 parent
7b4c517a6c
commit
300fff092e
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user