matrix-spec/layouts/_partials/navbar-version-selector.html
Johannes Marbach 1a813ff434 Add version picker in the navbar
Fixes: #951
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2025-12-01 16:21:16 +01:00

19 lines
547 B
HTML

{{- /*
A version of the navbar-version-selector.html partial in Docsy,
modified to read the versions from /versions.json.
*/ -}}
{{ $changelog := site.GetPage "changelog" }}
{{ $pages := $changelog.RegularPages.ByDate.Reverse }}
<div class="dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
All Versions
</a>
<ul class="dropdown-menu" id="version-selector">
{{- /* The menu is built by version.js */ -}}
</ul>
</div>