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