Add link to security policy from getenv.md (#1746)

Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
Robert FeketeandJoe Mooring authored and GitHub committed 2022-11-10 22:10:27 -08:00
1 parent 7b4c517a6c
commit 300fff092e
1 file changed
+3
+3
View File
@@ -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.