{{ define "sidebar" }} {{ $currentNode := . }}
topic ⦚ {{ .Title }}
{{ if ne (trim .Page.TableOfContents "\n") "" }}
{{ .Page.TableOfContents }}
{{ end }}
    {{ range .Params.has_sessions }} {{ with $.GetPage (printf "%s%s" "/session/" . ) }}
  • > {{ .Title }}
  • {{ end }} {{ end }}
{{ end }} {{define "main" }}
{{ if eq .Params.last_modified "top" }}
Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}
{{ end }}
{{ .Content }}
{{ if eq .Params.last_modified "bottom" }}
Last modified: {{ dateFormat "Monday, Jan 2, 2006" .Lastmod }}
{{ end }}
{{ end }}