portails/layouts/docs/single.html

45 lines
1.5 KiB
HTML
Raw Normal View History

2020-04-15 15:48:16 +02:00
{{ define "main" }}
<div class="row flex-xl-nowrap">
<div class="col-lg-5 col-xl-4 docs-sidebar">
<nav class="docs-links" aria-label="Main navigation">
{{ partial "sidebar/docs-menu.html" . }}
2021-03-05 21:04:55 +01:00
</nav>
2020-04-15 15:48:16 +02:00
</div>
2020-12-03 16:07:04 +01:00
{{ if ne .Params.toc false -}}
2020-04-15 15:48:16 +02:00
<nav class="docs-toc d-none d-xl-block col-xl-3" aria-label="Secondary navigation">
{{ partial "sidebar/docs-toc.html" . }}
</nav>
2020-12-03 16:07:04 +01:00
{{ end -}}
{{ if .Params.toc -}}
2020-04-17 11:22:19 +02:00
<main class="docs-content col-lg-11 col-xl-9">
2020-12-03 16:07:04 +01:00
{{ else -}}
<main class="docs-content col-lg-11 col-xl-9 mx-xl-auto">
{{ end -}}
2021-03-05 21:04:55 +01:00
{{ if .Site.Params.options.breadCrumb -}}
<!-- https://discourse.gohugo.io/t/breadcrumb-navigation-for-highly-nested-content/27359/6 -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{{ partial "main/breadcrumb" . -}}
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
</ol>
</nav>
{{ end }}
2020-04-17 11:22:19 +02:00
<h1>{{ .Title }}</h1>
<p class="lead">{{ .Params.lead | safeHTML }}</p>
2021-09-07 12:08:46 +02:00
{{ if ne .Params.toc false -}}
<nav class="d-xl-none" aria-label="Quaternary navigation">
{{ partial "sidebar/docs-toc.html" . }}
</nav>
{{ end -}}
2020-04-17 11:22:19 +02:00
{{ partial "main/headline-hash.html" .Content }}
2020-12-03 16:07:04 +01:00
{{ if .Site.Params.editPage -}}
{{ partial "main/edit-page.html" . }}
{{ end -}}
{{ if not .Site.Params.options.collapsibleSidebar -}}
{{ partial "main/docs-navigation.html" . }}
{{ else -}}
<div class="my-n3"></div>
{{ end -}}
2020-04-15 15:48:16 +02:00
</main>
</div>
{{ end }}