mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-08 19:59:23 +03:00
655 B
655 B
title | description | categories | keywords | action | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hugo.Environment | Returns the current running environment. |
|
The hugo.Environment
function returns the current running environment as defined through the --environment
command line flag.
{{ hugo.Environment }} → production
Command line examples:
Command | Environment |
---|---|
hugo |
production |
hugo --environment staging |
staging |
hugo server |
development |
hugo server --environment staging |
staging |