2020-03-05 04:10:52 +00:00
|
|
|
{{ define "sidebar" }}
|
|
|
|
{{ $currentNode := . }}
|
|
|
|
<div class="leading-none mb-12">
|
|
|
|
<span class="title-pretext">topic ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
|
|
|
|
</div>
|
2020-03-07 16:39:40 +00:00
|
|
|
|
|
|
|
{{ 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-sessions" type="checkbox">
|
|
|
|
<label for="toggly-sessions" class="sidebar-title mb-1" tabindex="1">▒▒ has sessions ▽</label>
|
|
|
|
<div class="hiddendiv">
|
|
|
|
<ul class="mt-4">
|
2020-03-21 01:50:40 +00:00
|
|
|
{{ range .Params.has_sessions }}
|
|
|
|
{{ with $.GetPage (printf "%s%s" "/session/" . ) }}
|
|
|
|
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></li>
|
2020-03-05 04:10:52 +00:00
|
|
|
{{ end }}
|
2020-03-21 01:50:40 +00:00
|
|
|
{{ end }}
|
2020-03-05 04:10:52 +00:00
|
|
|
</ul>
|
2020-03-07 16:39:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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">
|
2020-03-05 04:10:52 +00:00
|
|
|
<li><a class="sidebar-list text-base" href="{{ .Site.Home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">↖ syllabus ⦚ {{ .Site.Home.Title }}</a></li>
|
|
|
|
</ul>
|
2020-03-07 16:39:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-03-05 04:10:52 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{define "main" }}
|
|
|
|
<article>
|
2020-03-17 14:51:29 +00:00
|
|
|
{{ if eq .Params.last_modified "top" }}
|
|
|
|
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
|
|
|
|
{{ end }}
|
2020-03-05 04:10:52 +00:00
|
|
|
<div class="content-text">{{ .Content }}</div>
|
2020-03-17 14:51:29 +00:00
|
|
|
{{ if eq .Params.last_modified "bottom" }}
|
|
|
|
<div class="font-playfair italic text-base">Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}</div>
|
|
|
|
{{ end }}
|
2020-03-05 04:10:52 +00:00
|
|
|
</article>
|
|
|
|
{{ end }}
|