matrix-spec/layouts/_partials/navbar-version-selector.html
Johannes Marbach 5fe78ced53 Convert versions.js to a template to resolve the correct path of /changelog/historical
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2025-12-03 08:59:00 +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>