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

48 lines
1.7 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" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
</div>
{{ range .Site.Home.Params.has_topics }}
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
<div class="topic"><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" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
<div>{{ .Content }} </div>
{{ end }}
{{ end }}
{{ end }}