matrix-spec/layouts/_partials/navbar-version-selector.html
Johannes Marbach d193c5536f Add version picker in the navbar
Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2025-12-04 14:13:41 +01:00

19 lines
557 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 versions.template.js */ -}}
</ul>
</div>