{{ define "title" }}{{ .Title }} – {{ .Site.Title }}{{ end }} {{ define "main" }}

{{ if .Draft }}(Draft) {{ end }}{{ .Title }}

{{- if eq .Date.IsZero false }} {{- end }} {{- if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }} — last updated {{- end }}
{{ if or (.Params.tableofcontents) (and (ne .Params.tableofcontents false) (isset .Site.Params "tableofcontentswordcount") (ge .Site.Params.TableOfContentsWordCount 0) (gt .WordCount .Site.Params.TableOfContentsWordCount)) }} {{/* If the front matter parameter is true, show the toc */}} {{/* Elif the front matter parameter is false, don't show the toc */}} {{/* Elif the front matter parameter is not set, show the toc if the site parameter is set, non-negative, and less than the word count */}}
Table of Contents {{ $toc := .TableOfContents -}} {{- $toc := replaceRE `` $toc -}} {{- safeHTML $toc }}
{{ end }} {{ .Content }} {{ end }}