{{- /* A copy of the navbar.html partial in Docsy, modified to: * remove `data-bs-theme` at L20, otherwise the title disappears on hover. * replace the site title with "specification" at L31. * include the spec version from the config at L34-35, which is calculated using an inline `version-string` partial. */ -}} {{ $cover := and (.HasShortcode "blocks/cover") (not .Site.Params.ui.navbar_translucent_over_cover_disable) -}} {{ $baseURL := urls.Parse $.Site.Params.Baseurl -}} {{- 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 -}}