mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
710 B
710 B
title, description, categories, keywords, params
| title | description | categories | keywords | params | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Version | Returns the Version object for the given site. |
|
{{< new-in 0.153.0 />}}
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 }} → true
Name
(string) Returns the version name. This is the lowercased key from your project configuration.
{{ .Site.Version.Name }} → v1.0.0