31 lines
943 B
HTML
31 lines
943 B
HTML
{{ define "main" }}
|
||
{{$currentNode := . }}
|
||
<div class="syllabustitle"><span class="sup">syllabus⁄{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
||
|
||
<div class="grid syllabusgrid">
|
||
<div class="leftcolumn">
|
||
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
|
||
{{ .Page.TableOfContents }}
|
||
{{ end }}
|
||
</div>
|
||
<div class="rightcolumn">
|
||
<div class="has">
|
||
<span class="sup">has topics⁄</span>
|
||
</div>
|
||
<div class="afterhas">
|
||
{{ range .Params.has_topics }}
|
||
{{ with $.GetPage (printf "%s%s" "/topic/" . ) }}
|
||
<div class="topic">
|
||
<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 }}
|