This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
theme-geeklab/layouts/_default/list.html

50 lines
1.8 KiB
HTML
Raw Normal View History

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">
<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>
<section class="post-content">
2018-10-09 06:25:05 +00:00
{{ .Summary }}
{{ if .Truncated }}
2018-10-09 10:02:33 +00:00
<div>
<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>
<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) }}
<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 := . }}
<span class="post-footer__button">
2018-10-09 10:02:33 +00:00
{{ with $.Site.GetPage (printf "/categories/%s" $name | urlize) }}
<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 }}