hugo.IsServer
Reports whether the built-in development server is running.
- Syntax
- hugo.IsServer
- Returns
- bool
Usage
The hugo.IsServer function reports whether the built-in development server is running, such as when you run the hugo server command.
Examples
{{ hugo.IsServer }} → true/falseLast updated:
November 8, 2026
:
content: Apply style guide to hugo functions (ed4f37ecc)
Improve this page