Fix broken link to katex CSS

Followup to https://github.com/matrix-org/matrix-spec/pull/2226, which broke
the build. These links to the static CSS are broken in the case that the spec
is built for a subdirectory (such as `unstable`).
This commit is contained in:
Richard van der Hoff 2025-10-31 10:55:37 +00:00
parent 4cafe7d9f4
commit 4341db3a6b
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
Inline Olm & Megolm specifications.

View file

@ -13,8 +13,8 @@
<head>
{{ partial "head.html" . }}
{{ if .Page.Store.Get "hasMath" }}
<link href="/css/katex.min.css" rel="preload" as="style">
<link href="/css/katex.min.css" rel="stylesheet">
<link href="{{ relURL "css/katex.min.css" }}" rel="preload" as="style">
<link href="{{ relURL "css/katex.min.css" }}" rel="stylesheet">
{{ end }}
</head>
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">