|
| 1 | +{{ define "main" }} |
| 2 | + <div class="row flex-xl-nowrap"> |
| 3 | + {{ if (in site.Params.doks.sectionNav .Section) -}} |
| 4 | + <div class="col-lg-5 col-xl-4 docs-sidebar{{ if ne site.Params.doks.navbarSticky true }} docs-sidebar-top{{ end }}{{ if site.Params.doks.headerBar }} docs-sidebar-offset{{ end }} d-none d-lg-block"> |
| 5 | + {{ partial "sidebar/section-menu.html" . }} |
| 6 | + </div> |
| 7 | + {{ end -}} |
| 8 | + {{ if and (eq site.Params.doks.containerBreakpoint "fluid") (in .Site.Params.mainSections .Type) }} |
| 9 | + <div class="col container-fw d-lg-flex flex-lg-row justify-content-center mx-auto"> |
| 10 | + {{ end }} |
| 11 | + {{ if ne .Params.toc false -}} |
| 12 | + <nav class="docs-toc{{ if ne site.Params.doks.navbarSticky true }} docs-toc-top{{ end }}{{ if site.Params.doks.headerBar }} docs-toc-offset{{ end }} d-none d-xl-block col-xl-3" aria-label="Secondary navigation"> |
| 13 | + {{ partial "sidebar/docs-toc-desktop.html" . }} |
| 14 | + </nav> |
| 15 | + {{ end -}} |
| 16 | + {{ if .Params.toc -}} |
| 17 | + <main class="docs-content col-lg-11 col-xl-9"> |
| 18 | + {{ else -}} |
| 19 | + <main class="docs-content col-lg-11 col-xl-9 mx-xl-auto"> |
| 20 | + {{ end -}} |
| 21 | + {{ if site.Params.doks.breadcrumbTrail -}} |
| 22 | + <!-- https://discourse.gohugo.io/t/breadcrumb-navigation-for-highly-nested-content/27359/6 --> |
| 23 | + <nav aria-label="breadcrumb"> |
| 24 | + <ol class="breadcrumb"> |
| 25 | + {{ partial "main/breadcrumb" . -}} |
| 26 | + <li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li> |
| 27 | + </ol> |
| 28 | + </nav> |
| 29 | + {{ end }} |
| 30 | + <h1>{{ .Title }}{{ with .Params.audience }}{{ if eq . "opensource" }} (Open Source){{ else if eq . "pro" }} (Pro){{ end }}{{ end }}</h1> |
| 31 | + <!-- <p class="lead">{{ .Params.lead | safeHTML }}</p> --> |
| 32 | + {{ if ne .Params.toc false -}} |
| 33 | + <nav class="toc-mobile d-xl-none" aria-label="Quaternary navigation"> |
| 34 | + {{ partial "sidebar/docs-toc-mobile.html" . }} |
| 35 | + </nav> |
| 36 | + {{ end -}} |
| 37 | + |
| 38 | + {{ if site.Params.doks.headlineHash -}} |
| 39 | + {{ partial "main/headline-hash" .Content }} |
| 40 | + {{ else -}} |
| 41 | + {{ .Content }} |
| 42 | + {{ end -}} |
| 43 | + <div class="page-footer-meta d-flex flex-column flex-md-row justify-content-between"> |
| 44 | + {{ if site.Params.doks.lastMod -}} |
| 45 | + {{ partial "main/last-modified.html" . }} |
| 46 | + {{ end -}} |
| 47 | + {{ if site.Params.doks.editPage -}} |
| 48 | + {{ partial "main/edit-page.html" . }} |
| 49 | + {{ end -}} |
| 50 | + </div> |
| 51 | + {{ partial "main/docs-navigation.html" . }} |
| 52 | + <!-- |
| 53 | + {{ if not .Site.Params.options.collapsibleSidebar -}} |
| 54 | + {{ partial "main/docs-navigation.html" . }} |
| 55 | + {{ else -}} |
| 56 | + <div class="my-n3"></div> |
| 57 | + {{ end -}} |
| 58 | + --> |
| 59 | + </main> |
| 60 | + {{ if and (eq site.Params.doks.containerBreakpoint "fluid") (in .Site.Params.mainSections .Type) }} |
| 61 | + </div> |
| 62 | + {{ end }} |
| 63 | + </div> |
| 64 | +{{ end }} |
0 commit comments