{{ partial "head" . }}
<body>
  <div id="wrap">
    <!-- Header -->
    {{ partial "header" . }}
    <div class="container archive">
      <h1>{{ .Site.Params.Blog.Headline }}
        {{ if (isset .Data "Singular") }}
          <br />({{ .Data.Singular | humanize }}: {{lower .Title}})
          <span class="article-rss"><a href="/{{ .Data.Plural }}/{{lower .Title}}/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i></a></span>
        {{ else }}
          <span class="article-rss"><a href="/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i></a></span>
        {{ end }}
      </h1>
      {{ if .Site.Params.Social.CommentsProvider }}
        <p><a href="{{ .Site.Params.Social.CommentsProvider }}">Subscribe</a> to my Blog via Diaspora, Mastodon, Friendica or GNU Social. Never miss a article! Reshare, like and discuss it!</p>
      {{ end }}
      <p class="categories">
        <a class="label label-success" href="/blog">All</a>
        {{ range $name, $taxonomy := .Site.Taxonomies.categories }}
          <a class="label label-success" href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}">
            {{ humanize $name }}
          </a>
        {{ end }}
      </p>
      
      <div class="panel panel-default panel-overview">
        <div class="blogpost">
          {{ range .Data.Pages.ByPublishDate.Reverse }}
            <div class="blog-summary">
              <h4><strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong></h4>
              <div class="metadata">Posted on {{ .Date.Format "2 January 2006" }} - Tagged with {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{ lower $tag }}">{{ $tag }}</a>{{ end }}</div>
              <p>{{ .Summary }} <a class="learn-more" href="{{ .RelPermalink }}"></a></p>
            </div>
          {{ end }}
        </div>
      </div>
    </div>
  </div>
  <!-- Footer -->
  {{ partial "footer" . }}
</body>
</html>
