2023-03-11 11:41:19 +01:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ .Content }}
|
2023-03-12 00:13:25 +01:00
|
|
|
<h1 id="aktuelles">Aktuelles</h1>
|
2023-03-11 11:41:19 +01:00
|
|
|
{{ $pagination := .Paginate .RegularPages }}
|
|
|
|
{{ range $pagination.Pages }}
|
2023-03-12 18:20:56 +01:00
|
|
|
<p class="date">{{ .Date | dateFormat "Mon, 02. January 2006" }}</p>
|
2023-03-11 16:04:10 +01:00
|
|
|
<article class="preview">
|
|
|
|
{{ with .Resources.GetMatch "image.jpg" }}
|
|
|
|
<section class="image"><img alt="{{ .Title }}" src="{{ .RelPermalink }}"></section>
|
|
|
|
{{ end }}
|
|
|
|
<section class="text">
|
2023-03-11 16:22:38 +01:00
|
|
|
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
|
|
|
{{ .Summary }}
|
|
|
|
{{ if .Truncated }}
|
|
|
|
<a href="{{ .RelPermalink }}">> Mehr <</a>
|
|
|
|
{{ end }}
|
2023-03-11 16:04:10 +01:00
|
|
|
</section>
|
|
|
|
</article>
|
2023-03-11 11:41:19 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ with $pagination }}
|
|
|
|
{{ if gt .TotalPages 1 }}
|
|
|
|
<nav class="pagination">
|
|
|
|
{{ if .HasPrev }}<a href="{{ .Prev.URL }}">< Neuere Posts</a>{{ end }}
|
|
|
|
<span>{{ .PageNumber }}/{{ .TotalPages }}</span>
|
|
|
|
{{ if .HasNext }}<a href="{{ .Next.URL }}">Ältere Posts ></a>{{ end }}
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2023-03-12 00:13:25 +01:00
|
|
|
<h1 id="galerie">Galerie</h1>
|
|
|
|
<section class="gallery">
|
|
|
|
{{ range first 4 (.Site.GetPage "/galerie").Pages }}
|
|
|
|
<a class="blur-on-hover" href="{{ .RelPermalink }}">
|
|
|
|
{{ with index (.Resources.ByType "image") 0 }}
|
|
|
|
<div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
|
|
|
|
{{ end }}
|
|
|
|
<p>{{ .Title }}</p>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
2023-03-11 11:41:19 +01:00
|
|
|
{{ end }}
|