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

34 lines
1.0 KiB
HTML
Raw Normal View History

2020-08-18 23:14:35 +00:00
{{ define "main" }}
{{$currentNode := . }}
<div class="syllabustitle"><span class="sup">syllabus{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
<div class="gridcontainer">
<div class="grid">
<div class="toc">
<div><span class="sup">Table of Contents</span></div>
</div>
<div class="aftertoc">
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
{{ .Page.TableOfContents }}
{{ end }}
</div>
<div class="has">
<div><span class="sup">has topics</span></div>
</div>
<div class="afterhas">
{{ range .Params.has_topics }}
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
<div>
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
</div>
{{ end }}
{{ end }}
</div>
</div>
</div>
<div class="content">{{ .Content }}</div>
{{ end }}