{{ define "main" }}
<div class="container py-5">
  <div class="row">
    <div class="col-lg-8 mx-auto">
      <header class="mb-5">
        <h1>{{ .Title }}</h1>
        {{ if .Description }}
          <p class="lead text-muted">{{ .Description }}</p>
        {{ end }}
      </header>

      <div class="blog-list">
        {{ range .Pages }}
          <article class="mb-5 pb-5 border-bottom">
            <header class="mb-3">
              <h2 class="h3">
                <a href="{{ .RelPermalink }}" class="text-decoration-none">{{ .Title }}</a>
              </h2>
              <time datetime="{{ .Date.Format "2006-01-02" }}" class="text-muted">
                {{ .Date.Day }}. {{ i18n (printf "month_%d" .Date.Month) }} {{ .Date.Year }}
              </time>
            </header>

            {{ if .Description }}
              <p class="lead">{{ .Description }}</p>
            {{ else if .Summary }}
              <div class="summary">
                {{ .Summary }}
              </div>
            {{ end }}

            <a href="{{ .RelPermalink }}" class="btn btn-outline-primary">
              {{ if eq $.Language.Lang "de" }}
                Weiterlesen
              {{ else }}
                Read more
              {{ end }}
            </a>
          </article>
        {{ end }}
      </div>
    </div>
  </div>
</div>
{{ end }}
