Environment Variables

Shortcode to read environment variables.

Donate

Become a backer or sponsor to support our work.

On this page

Sponsors

Use Cases

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.

Syntax

1{{< env >}}

Parameters

name

PositionNameTypeRequiredDefaultSinceExample
#0namestring---

The name of environment variable.

Examples

Source
1{{< env "CI" >}}
Result