mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 03:34:08 +01:00
Allows to only serve the file that we actually use. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
18 lines
596 B
HTML
18 lines
596 B
HTML
{{/*
|
|
|
|
This template is included at the end of each page's `<body>`.
|
|
|
|
We're using it here to:
|
|
|
|
1) include the JS that generates the table of contents. It would be better
|
|
to generate the table of contents as part of the Hugo build process, but
|
|
that doesn't work nicely with the way we want to author client-server modules
|
|
as separate files.
|
|
|
|
2) highlight and scroll the ToC in the sidebar to match the place we are at
|
|
in the document.
|
|
|
|
*/}}
|
|
{{ $toc := resources.Get "js/toc.js" -}}
|
|
<script defer language="javascript" type="text/javascript" src="{{ $toc.RelPermalink }}"></script>
|