HUGO
Menu
GitHub 90451 stars Mastodon

hugo.IsDevelopment

Reports whether the current running environment is “development”.
Syntax
hugo.IsDevelopment
Returns
bool

Usage

The hugo.IsDevelopment function reports whether the current running environment is development, the default when you run the hugo server command. Use the hugo.Environment function to return the name of the current running environment.

Examples

{{ hugo.IsDevelopment }} → true/false