{{ define "sidebar" }}
    {{$currentNode := . }}
    <div class="leading-none mb-12">
        <span class="title-pretext">download ⦚ </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 }}
{{ end }}

{{ define "main" }}
    <div class="content-text">{{ .Content }}</div>
{{ end }}
