2018-10-09 06:25:05 +00:00
|
|
|
{{ define "main" }}
|
2018-10-09 10:02:33 +00:00
|
|
|
{{ $paginator := .Paginate (where .Pages "Type" "post") }}
|
|
|
|
{{ range $paginator.Pages }}
|
2018-10-10 14:56:52 +00:00
|
|
|
<article class="post">
|
2018-10-10 21:44:51 +00:00
|
|
|
<header class="post-header">
|
|
|
|
<h2 class="post-header__title"><a class="post-header__link" href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
2018-10-09 06:25:05 +00:00
|
|
|
</header>
|
|
|
|
|
2018-10-10 21:44:51 +00:00
|
|
|
<section class="post-content">
|
2018-10-09 06:25:05 +00:00
|
|
|
{{ .Summary }}
|
|
|
|
{{ if .Truncated }}
|
2018-10-09 10:02:33 +00:00
|
|
|
<div>
|
2018-10-10 21:44:51 +00:00
|
|
|
<br><a class="post-content__link is-readmore" title="Lese den kompletten Artikel" href="{{ .RelPermalink }}">Weiterlesen</a>
|
2018-10-09 10:02:33 +00:00
|
|
|
</div>
|
2018-10-09 06:25:05 +00:00
|
|
|
{{ end }}
|
2018-10-10 14:56:52 +00:00
|
|
|
</section>
|
2018-10-09 06:25:05 +00:00
|
|
|
|
|
|
|
<footer>
|
2018-10-10 21:44:51 +00:00
|
|
|
<span class="post-footer__button">
|
|
|
|
<i class="far fa-calendar-alt post-footer__icon"></i>
|
2018-10-09 10:02:33 +00:00
|
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
|
|
|
{{ .Date.Day }}. {{ index $.Site.Data.de_month (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
|
|
|
</time>
|
|
|
|
</span>
|
2018-10-09 09:05:24 +00:00
|
|
|
|
2018-10-09 10:02:33 +00:00
|
|
|
{{ range .Param "authors" }}
|
|
|
|
{{ $name := . }}
|
|
|
|
{{ with $.Site.GetPage (printf "/authors/%s" $name | urlize) }}
|
2018-10-10 21:44:51 +00:00
|
|
|
<span class="post-footer__button">
|
|
|
|
<i class="fas fa-user post-footer__icon"></i>
|
|
|
|
<a class="post-footer__link" href="{{ .RelPermalink }}" title="Alle Artikel des Autors">{{ $name }}</a>
|
2018-10-09 06:25:05 +00:00
|
|
|
</span>
|
2018-10-09 10:02:33 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range .Param "categories" }}
|
|
|
|
{{ $name := . }}
|
2018-10-10 21:44:51 +00:00
|
|
|
<span class="post-footer__button">
|
2018-10-09 10:02:33 +00:00
|
|
|
{{ with $.Site.GetPage (printf "/categories/%s" $name | urlize) }}
|
2018-10-10 21:44:51 +00:00
|
|
|
<i class="fas fa-tags post-footer__icon"></i>
|
|
|
|
<a class="post-footer__link" href="{{ .RelPermalink }}" title="Alle Artikel in '{{ $name }}'">{{ $name }}</a>
|
2018-10-09 09:05:24 +00:00
|
|
|
{{ end }}
|
2018-10-09 10:02:33 +00:00
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</footer>
|
2018-10-09 06:25:05 +00:00
|
|
|
</article>
|
2018-10-09 10:02:33 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ partial "pagination.html" . }}
|
2018-10-09 06:25:05 +00:00
|
|
|
{{ end }}
|