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

20 lines
661 B
HTML

{{ 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="sidebar-title mb-1">▒▒ has topics ▽</div>
<ul>
{{ 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>
{{ end }}
{{ define "main" }}
<div class="content-text">{{ .Content }}</div>
{{ end }}