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

30 lines
926 B
HTML
Raw Normal View History

2020-08-18 23:14:35 +00:00
{{ define "main" }}
{{$currentNode := . }}
<div class="topicstitle"><span class="sup">topic{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
2020-08-19 01:12:29 +00:00
<div class="grid">
<div class="leftcolumn">
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
{{ .Page.TableOfContents }}
{{ end }}
2020-08-19 01:12:29 +00:00
</div>
<div class="rightcolumn">
2020-08-18 23:14:35 +00:00
<div class="has">
2020-08-19 01:12:29 +00:00
<span class="sup">has sessions</span>
2020-08-18 23:14:35 +00:00
</div>
<div class="afterhas">
2020-08-19 01:12:29 +00:00
{{ range .Params.has_sessions }}
2020-08-18 23:14:35 +00:00
{{ with $.GetPage (printf "%s%s" "/session/" . ) }}
2020-08-28 02:12:08 +00:00
<div class="topic">
2020-08-19 01:12:29 +00:00
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
2020-08-18 23:14:35 +00:00
</div>
{{ end }}
2020-08-19 01:12:29 +00:00
{{ end }}
2020-08-18 23:14:35 +00:00
</div>
</div>
</div>
<div class="content">{{ .Content }}</div>
{{ end }}