{{/*
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"}}
{{ $ret = .Site.Params.version.number }}
{{ $ret = delimit (slice "version" $ret) " " }}
{{ end }}
{{ return $ret }}
{{ end }}