1
- {{ .Render "docs" }}
1
+ {{ define "main" }}
2
+ < div class ="docs-container row override-sidebar-collapse ">
3
+ < nav id ="sidebar " class ="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none align-top ">
4
+ {{ partial "sidebar.html" . }}
5
+ </ nav >
2
6
7
+ <!-- Replace icons -->
8
+ {{ $content := partial "icon-replacement.html" (dict "content" .Content) }}
9
+
10
+ {{if (.Params.catalog) }}
11
+ < main class ="content content-has-toc " role ="main ">
12
+ {{ else if and (gt .WordCount 200 ) (.Params.toc) }}
13
+ < main class ="content col d-block align-top content-has-toc " role ="main ">
14
+ {{ else }}
15
+ < main class ="content col d-block align-top content-no-toc " role ="main ">
16
+ {{ end }}
17
+
18
+ < section class ="main-layout ">
19
+ < div class ="sidebar-layout " id ="sidebar-layout ">
20
+ < button class ="sidebar__mobile__toggle " aria-expanded ="false " data-mf ="true "> {{ partial "lucide" (dict "context" . "icon" "x")}}Close</ button >
21
+ < nav data-mf ="true " id ="sidebar-v2 " class ="sidebar ">
22
+ {{ partial "sidebar-v2.html" . }}
23
+ </ nav >
24
+ </ div >
25
+
26
+ < section id ="maincontent " class ="content-layout ">
27
+ < div data-cms-edit ="content " class ="text-content ">
28
+ < section class ="breadcrumb-layout wide " data-mf ="true " style ="display: none; ">
29
+ {{ if not .IsHome }}
30
+ {{ if not (in .Params.display_breadcrumb "false" ) }}
31
+ {{ partial "breadcrumb" .}}
32
+ {{ end }}
33
+ {{ end }}
34
+ </ section >
35
+ {{ partial "banner" .}}
36
+ < h1 > {{ .Title }}</ h1 >
37
+ {{ $content | safeHTML }}
38
+ {{ if eq .Page.Draft true }}{{ partial "draft-badge.html" . }}{{ end }}
39
+ {{ if in .Params.doctypes "beta" }}{{ partial "beta-badge" . }}{{ end }}
40
+
41
+ < hr >
42
+
43
+ {{ if .Page.Lastmod }}
44
+ < div class ="last-modified ">
45
+ {{ partial "page-meta-links" . }}
46
+ </ div >
47
+ {{ end }}
48
+
49
+ {{ partial "version-list" . }}
50
+ {{ partial "qualtrics-feedback.html" }}
51
+
52
+ {{ partial "previous-next-links-in-section-with-title.html" . }}
53
+ </ main >
54
+ {{ if and (gt .WordCount 200 ) (.Params.toc) }}
55
+ {{ if (add (len (findRE "< h3 " .Content)) (len (findRE "< h2" .Content))) }}
56
+ < div id ="toc " class ="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top ">
57
+ {{ partial "toc.html" . }}
58
+ </ div >
59
+ {{ end }}
60
+ {{ end }}
61
+
62
+ </ div>
63
+ </ section>
64
+ </ section>
65
+ </ div>
66
+ <!-- If there is a script defined in the page metadata, load it -->
67
+ {{if .Params.script}}
68
+ {{ $script := (delimit (slice "scripts" .Params.script) "/")}}
69
+ {{ partial (string $script) .}}
70
+ {{end }}
71
+
72
+ {{ end }}
0 commit comments