mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
606 B
606 B
title, description, categories, keywords, params
| title | description | categories | keywords | params | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |