Syllabus/themes/piratecare/layouts/print/list.html

55 lines
2.0 KiB
HTML

{{ define "main" }}
<div class="frontpage">
<span class="title-pretext">syllabus ⦚ </span><span class="title-text pt-6">{{ .Site.Home.Title }}</span>
<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 .Site.Home.Params.has_topics }}
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
<li><a class="sidebar-list text-base toc" href="#{{ .File.LogicalName }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
</div>
{{ range .Site.Home.Params.has_topics }}
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
<div class="topic" id="{{ .File.LogicalName }}"><div class="runningTopic">topic ⦚ {{ .Title }}</div>
<span class="topic-pretext">topic ⦚ </span><span class="topic-text pt-6">{{ .Title }}</span>
<div class="ddmenu">
<input id="toggly" type="checkbox">
<label for="toggly" class="sidebar-title mb-1" tabindex="1">▒▒ has sessions ▽</label>
<div class="hiddendiv">
<ul class="mt-4">
{{ range .Params.has_sessions }}
{{ with $.GetPage (printf "%s%s" "/session/" . ) }}
<li><a class="sidebar-list text-base toc" href="#{{ .File.LogicalName }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
<div>{{ .Content }}</div>
{{ range .Params.has_sessions }}
{{ with $.GetPage (printf "%s%s" "/session/" . ) }}
<div class="topic" id="{{ .File.LogicalName }}"><div class="runningTopic">session ⦚ {{ .Title }}</div>
<span class="topic-pretext">session ⦚ </span><span class="topic-text pt-6">{{ .Title }}</span>
<div>{{ .Content }} </div>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}