31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
{{ define "main" }}
|
||
{{$currentNode := . }}
|
||
<div class="topicstitle"><span class="sup">session⁄{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
||
|
||
<div class="grid">
|
||
<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">in topics⁄</span>
|
||
</div>
|
||
<div class="afterhas">
|
||
{{ $currentSession := . }}
|
||
{{ range where $.Site.RegularPages ".Section" "topic" }}
|
||
{{ if in .Params.has_sessions $currentSession.File.LogicalName }}
|
||
<div><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></div>
|
||
{{ else if in $currentSession.Params.is_in .File.LogicalName }}
|
||
<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 }}
|