{{ define "main" }}
<h1>{{ .Title }}</h1>
<section class="meta">
  {{ with .Date }}Published on {{. | time.Format "2006-01-02" }}{{ end }} {{ if
  (gt .Lastmod .Date) }}| Last modified on {{.Lastmod | time.Format "2006-01-02"
  }} {{ end }}
</section>
{{ if .Params.tldr }}
<div class="tldr">{{.Params.tldr|markdownify}}</div>
{{ end }} {{ if .Params.toc }}
<div class="toc">
  <aside>{{ .TableOfContents }}</aside>
</div>
{{ end }}{{ .Content }} {{ end }}
