diff options
Diffstat (limited to 'content/en/functions/getenv.md')
-rw-r--r-- | content/en/functions/getenv.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/en/functions/getenv.md b/content/en/functions/getenv.md index f7f71d35c..93e93a382 100644 --- a/content/en/functions/getenv.md +++ b/content/en/functions/getenv.md @@ -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. + |