Shortcode to read environment variables.
Become a backer or sponsor to support our work.
This shortcode is mainly used to read certain information from environment variables. Imagine you have a public site repository with your personal contact email address in it, and when someone else forks and deploys a new site and forgets to change the email address, it will undoubtedly bring you unnecessary contact and trouble.
When using GitHub Actions for deployment, you’ll need to store the info in GitHub secrets, and pass it to environment variables.
1{{< env >}}
name
Position | Name | Type | Required | Default | Since | Example |
---|---|---|---|---|---|---|
#0 | name | string | ✓ | - | - | - |
The name of environment variable.
1{{< env "CI" >}}