Version
Returns the Version object for the given site.
Syntax
SITE.Version
Returns
versions.Version
The Version method on a Site object returns the Version object for the given site, derived from the version definition in your project configuration.
Methods
IsDefault
(bool) Reports whether this is the default version.
{{ .Site.Version.IsDefault }} → trueName
(string) Returns the version name. This is the lowercased key from your project configuration.
{{ .Site.Version.Name }} → v1.0.0Last updated:
February 25, 2026
:
Merge commit '0c2fa2460f485e0eca564dcccf36d34538374922' (b0d3364f1)
Improve this page