{{ define "main" }}
<div class="container">
  <div class="row">
    <div class="col-lg-8 offset-lg-2">
      <article class="mt-5 mb-5">
        {{ if .Title }}
        <header class="mb-4">
          <h1 class="display-5">{{ .Title }}</h1>
          {{ if .Date }}
          <p class="text-muted">
            <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
          </p>
          {{ end }}
        </header>
        {{ end }}

        <div class="content">
          {{ .Content }}
        </div>
      </article>
    </div>
  </div>
</div>
{{ end }}
