{{ define "main" }}
<article class="container py-5">
  <div class="row">
    <div class="col-lg-8 mx-auto">
      <header class="mb-5">
        <h1>{{ .Title }}</h1>

        <div class="text-muted mb-3">
          <time datetime="{{ .Date.Format "2006-01-02" }}">
            {{ .Date.Day }}. {{ i18n (printf "month_%d" .Date.Month) }} {{ .Date.Year }}
          </time>
        </div>

        {{ if .Description }}
          <p class="lead">{{ .Description }}</p>
        {{ end }}
      </header>

      <div class="blog-content">
        {{ .Content }}
      </div>

      <footer class="mt-5 pt-4 border-top">
        <a href="{{ "/blog/" | relLangURL }}" class="btn btn-outline-secondary">
          {{ if eq .Language.Lang "de" }}
            ← Zurück zum Blog
          {{ else }}
            ← Back to Blog
          {{ end }}
        </a>
      </footer>
    </div>
  </div>
</article>
{{ end }}
