2021-01-13 05:45:24 +01:00
|
|
|
{{/*
|
|
|
|
|
|
|
|
|
|
A copy of the baseof.html partial in Docsy, modified
|
|
|
|
|
to remove the right-hand column from the layout.
|
|
|
|
|
|
|
|
|
|
*/}}
|
|
|
|
|
|
2025-12-04 13:24:28 +01:00
|
|
|
{{/* Generate a static file versions.json that can be used to populate the version picker */}}
|
|
|
|
|
{{ if .IsHome }}
|
|
|
|
|
{{- /* Load all changelog subpages, sorted by release date */ -}}
|
|
|
|
|
{{ $changelog := site.GetPage "changelog" }}
|
|
|
|
|
{{ $pages := $changelog.RegularPages.ByDate.Reverse }}
|
|
|
|
|
|
|
|
|
|
{{- /* Collect proper versions and build metadata dicts */ -}}
|
|
|
|
|
{{ $versions := slice }}
|
|
|
|
|
{{ range $pages }}
|
|
|
|
|
{{ if findRE `^v[0-9]+\.[0-9]+$` .Params.linkTitle }}
|
|
|
|
|
{{ $versions = $versions | append (dict "name" .Params.linkTitle "date" .Params.date ) }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{- /* Generate the JSON */ -}}
|
|
|
|
|
{{ $json := jsonify $versions }}
|
|
|
|
|
{{ $noop := (resources.FromString "/versions.json" $json).Permalink }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
2021-01-13 00:31:01 +01:00
|
|
|
<!doctype html>
|
2024-11-19 22:40:34 +01:00
|
|
|
<html itemscope itemtype="http://schema.org/WebPage"
|
|
|
|
|
{{- with .Site.Language.LanguageDirection }} dir="{{ . }}" {{- end -}}
|
|
|
|
|
{{ with .Site.Language.Lang }} lang="{{ . }}" {{- end }} {{/**/ -}}
|
|
|
|
|
class="no-js">
|
2021-01-13 00:31:01 +01:00
|
|
|
<head>
|
|
|
|
|
{{ partial "head.html" . }}
|
2025-10-31 11:33:32 +01:00
|
|
|
{{ if .Page.Store.Get "hasMath" }}
|
2025-10-31 12:02:16 +01:00
|
|
|
<link href="{{ relURL "css/katex.min.css" }}" rel="preload" as="style">
|
|
|
|
|
<link href="{{ relURL "css/katex.min.css" }}" rel="stylesheet">
|
2025-10-31 11:33:32 +01:00
|
|
|
{{ end }}
|
2021-01-13 00:31:01 +01:00
|
|
|
</head>
|
2024-11-19 22:40:34 +01:00
|
|
|
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
|
2021-01-13 00:31:01 +01:00
|
|
|
<header>
|
|
|
|
|
{{ partial "navbar.html" . }}
|
|
|
|
|
</header>
|
|
|
|
|
<div class="container-fluid td-outer">
|
|
|
|
|
<div class="td-main">
|
|
|
|
|
<div class="row flex-xl-nowrap">
|
2024-11-19 22:40:34 +01:00
|
|
|
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
|
2021-01-13 00:31:01 +01:00
|
|
|
{{ partial "sidebar.html" . }}
|
2024-11-19 22:40:34 +01:00
|
|
|
</aside>
|
|
|
|
|
<main class="col-12 col-md-9 col-xl-8 ps-md-5" role="main">
|
2021-01-13 00:31:01 +01:00
|
|
|
{{ partial "version-banner.html" . }}
|
2025-08-27 08:35:57 +02:00
|
|
|
{{ if not (.Param "ui.breadcrumb_disable") -}}
|
|
|
|
|
{{ partial "breadcrumb.html" . -}}
|
|
|
|
|
{{ end -}}
|
2021-01-13 00:31:01 +01:00
|
|
|
{{ block "main" . }}{{ end }}
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
|
</div>
|
|
|
|
|
{{ partial "scripts.html" . }}
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|