{{ define "main" }}
  {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
  {{ $dateHuman := .Date | time.Format ":date_short" }}
  <article class="h-entry">
    <header>
      {{ with .GetTerms "categories" }}
        <p class="category">
        {{ range . }}
          <a class="p-category" rel="tag" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
          {{ break }}
        {{ end }}
      </p>
      {{ end }}
      <h1 class="p-name">
        {{ .Title }}
      </h1>
      <div class="metadata">
        <p>
          {{ T "posted" }}
          <time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
        </p>
        {{ partial "tags.html" . }}
      </div>
    </header>

    <section class="e-content">
      {{ .Content }}
    </section>
  </article>
{{ end }}
