{{/* A version of the navbar.html partial in Docsy, only modified to include the spec version, which is calculated using an inline `version-string` partial. */}} {{ $cover := .HasShortcode "blocks/cover" }} {{ define "partials/version-string" }} {{ $ret := "unstable version"}} {{ $status := .Site.Params.version.status }} {{ if ne $status "unstable"}} {{ $version_pieces := slice .Site.Params.version.major_version .Site.Params.version.minor_version .Site.Params.version.patch_version}} {{ $ret = delimit $version_pieces "." }} {{ $ret = delimit (slice "version" $ret) " " }} {{ end }} {{ return $ret }} {{ end }}