hugo.CommitHash
Returns the Git commit hash of the Hugo binary.
- Syntax
- hugo.CommitHash
- Returns
- string
Usage
The hugo.CommitHash function returns the Git commit hash of the Hugo binary.
Examples
{{ hugo.CommitHash }} → a4892a07b41b7b3f1f143140ee4ec0a9a5cf3970Last updated:
November 8, 2026
:
content: Apply style guide to hugo functions (ed4f37ecc)
Improve this page