mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,17 +3,12 @@ title: os.Getenv
|
||||
description: Returns the value of an environment variable, or an empty string if the environment variable is not set.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: [getenv]
|
||||
related:
|
||||
- functions/os/FileExists
|
||||
- functions/os/ReadDir
|
||||
- functions/os/ReadFile
|
||||
- functions/os/Stat
|
||||
returnType: string
|
||||
signatures: [os.Getenv VARIABLE]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: [getenv]
|
||||
returnType: string
|
||||
signatures: [os.Getenv VARIABLE]
|
||||
aliases: [/functions/getenv]
|
||||
toc: true
|
||||
---
|
||||
|
||||
## Security
|
||||
@@ -30,9 +25,7 @@ To access other environment variables, adjust your site configuration. For examp
|
||||
getenv = ['^HUGO_', '^CI$', '^USER$', '^HOME$']
|
||||
{{< /code-toggle >}}
|
||||
|
||||
Read more about Hugo's [security policy].
|
||||
|
||||
[security policy]: /about/security/#security-policy
|
||||
For more information see [configure security](/configuration/security).
|
||||
|
||||
## Examples
|
||||
|
||||
|
Reference in New Issue
Block a user