{{ define "main" }}
  <article class="page">
    <header class="page-header">
      <h1>{{ .Title }}</h1>
      {{ if eq .Section "aktuelles" }}
        <p class="page-meta">
          <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format site.Params.dateFormat }}</time>
          {{ with .Params.tags }}
            <span class="tags">{{ range . }}<span class="tag">{{ . }}</span>{{ end }}</span>
          {{ end }}
        </p>
      {{ end }}
    </header>

    <div class="prose">
      {{ .Content }}
    </div>

    {{ if eq .Section "aktuelles" }}
      <nav class="post-nav" aria-label="Weitere Beiträge">
        {{ with .PrevInSection }}<a class="prev" href="{{ .RelPermalink }}">← {{ .Title }}</a>{{ end }}
        {{ with .NextInSection }}<a class="next" href="{{ .RelPermalink }}">{{ .Title }} →</a>{{ end }}
      </nav>
    {{ end }}
  </article>
{{ end }}
