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">
|
2018-12-22 22:40:39 +00:00
|
|
|
<h1 class="post-header__title"><a class="post-header__link" href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
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>
|
2019-02-12 15:30:04 +00:00
|
|
|
<span class="post-meta__button">
|
|
|
|
<i class="far fa-calendar-alt post-meta__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-12-20 15:45:59 +00:00
|
|
|
{{ with .Params.Author }}
|
2018-12-20 21:05:01 +00:00
|
|
|
{{ $author := index $.Site.Data.authors . }}
|
2018-12-20 15:45:59 +00:00
|
|
|
|
2018-12-20 21:05:01 +00:00
|
|
|
{{ with $.Site.GetPage (printf "/author/%s" $author.name | urlize) }}
|
2019-02-12 15:30:04 +00:00
|
|
|
<span class="post-meta__button">
|
|
|
|
<i class="fas fa-user post-meta__icon"></i>
|
|
|
|
<a class="post-meta__link" href="{{ .RelPermalink }}" title="Alle Artikel des Autors">{{ $author.name }}</a>
|
2018-10-09 06:25:05 +00:00
|
|
|
</span>
|
2018-12-20 15:45:59 +00:00
|
|
|
{{ end }}
|
2018-10-09 10:02:33 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range .Param "categories" }}
|
|
|
|
{{ $name := . }}
|
2019-02-12 15:30:04 +00:00
|
|
|
<span class="post-meta__button">
|
2018-10-09 10:02:33 +00:00
|
|
|
{{ with $.Site.GetPage (printf "/categories/%s" $name | urlize) }}
|
2019-02-12 15:30:04 +00:00
|
|
|
<i class="fas fa-tags post-meta__icon"></i>
|
|
|
|
<a class="post-meta__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 }}
|