{{ define "main" }} {{if .Content}}

{{.Title | markdownify}}

{{- if and (gt .WordCount 800) .TableOfContents }}
{{- $toc := replace .TableOfContents `` `` }} {{- $toc = replace $toc `` `` }} {{- $toc = replace $toc `
  • ` `
    ` }} {{- $toc = replace $toc `
  • ` `` }} {{- $toc | safeHTML }}
    {{- end }} {{ .Content }} {{else }} {{ $paginator := .Paginator }}
    {{ partial "pagination.html" $paginator }}
    {{ range $index, $page := $paginator.Pages }} {{ .Render "li" }} {{ end }}
    {{ partial "pagination.html" $paginator }} {{end}} {{end}}