Syllabus/themes/piratecare/layouts/topic/single.html

25 lines
894 B
HTML

{{ define "sidebar" }}
{{ $currentNode := . }}
<div class="leading-none mb-12">
<span class="title-pretext">topic ⦚ </span><span class="title-text pt-6">{{ .Title }}</span>
</div>
<div class="sidebar-title mb-1">▒▒ has sessions ▽</div>
<ul>
{{ range split .Params.has_sessions "," }}
{{ 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 class="sidebar-title mt-4 mb-1">▒▒ is in ▽</div>
<ul>
<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>
{{ end }}
{{define "main" }}
<article>
<div class="content-text">{{ .Content }}</div>
</article>
{{ end }}