{{/*
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"}}
{{ $path := path.Join "changelogs" }}
{{/* produces a string similar to "version v1.5" */}}
{{ $ret = delimit (slice "version v" .Site.Params.version.major "." .Site.Params.version.minor) "" }}
{{ end }}
{{ return $ret }}
{{ end }}