{{ define "sidebar" }}
    {{$currentNode := . }}
    <div class="leading-none mb-12">
        <span class="title-pretext">syllabus ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
    </div>
    <div class="ddmenu">
    <input id="toggly" type="checkbox">
    <label for="toggly" class="sidebar-title mb-1" tabindex="1">▒▒ has topics ▽</label>
    <div class="hiddendiv">
    <ul class="mt-4">
        {{ range split .Params.has_topics "," }}
        {{ with $.GetPage (trim . " ") }}
        <li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></li>
        {{ end }}
        {{ end }}
    </ul>
    </div>
    </div>
{{ end }}

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