Fix versions.json URL in unstable and local environment

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
Johannes Marbach 2025-12-05 12:00:32 +01:00
parent 22c0952003
commit eab750edfa
2 changed files with 2 additions and 1 deletions

View file

@ -86,7 +86,7 @@ function appendVersion(parent, name, url) {
// versions.json from our own resources. Otherwise, we fall back to loading it
// from /unstable/versions.json, assuming we are on the spec.matrix.org deployment.
const url = currentVersion === "unstable"
? '{{ "/" | relURL }}versions.json'
? '{{ .Site.Home.Permalink }}versions.json'
: "/unstable/versions.json";
fetch(url)

View file

@ -0,0 +1 @@
Add version picker in the navbar.