{{ define "head" }}
  {{- partial "katex.html" . -}}
{{ end }}

{{ define "main" }}
  {{- partial "nav.html" . -}}
  <article>
    <header>
      <h1>{{ .Title }}</h1>
      {{ if gt .Date.Year 2000 }}<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
    </header>
    <div class="post-content">
      {{ .Content }}
    </div>
  </article>
{{ end }}
