40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
{{ define "sidebar" }}
|
|
<div class="leading-none mb-12">
|
|
<span class="title-pretext">session ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
|
|
</div>
|
|
|
|
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
|
|
<div class="ddmenu">
|
|
<input id="toggly-toc" type="checkbox" >
|
|
<label for="toggly-toc" class="sidebar-title" tabindex="1">▒▒ table of contents ▽</label>
|
|
<div class="hiddendiv">
|
|
<div class="mt-4">
|
|
{{ .Page.TableOfContents }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div class="ddmenu">
|
|
<input id="toggly-isin" type="checkbox">
|
|
<label for="toggly-isin" class="sidebar-title mt-4 mb-1" tabindex="1">▒▒ is in ▽</label>
|
|
<div class="hiddendiv">
|
|
|
|
<ul class="mt-4">
|
|
{{ $currentNode := . }}
|
|
{{ range (where $.Site.RegularPages ".Section" "topic") }}
|
|
{{ if in .Params.has_sessions $currentNode.File.BaseFileName }}
|
|
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">↖ topic ⦚ {{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{define "main" }}
|
|
<article>
|
|
<div class="content-text">{{ .Content }}</div>
|
|
</article>
|
|
{{ end }}
|