2021-07-21 20:23:55 +02:00
|
|
|
{{ define "main" }}
|
2023-04-23 20:55:52 +02:00
|
|
|
<article id="main" class="home-page">
|
2024-12-08 04:00:19 +01:00
|
|
|
{{ partial "brand.html" . }}
|
|
|
|
{{ with .Content }}
|
2023-04-25 15:43:15 +02:00
|
|
|
<section>
|
2024-09-27 15:36:01 +02:00
|
|
|
{{ . }}
|
2023-04-25 15:43:15 +02:00
|
|
|
</section>
|
2024-09-27 15:36:01 +02:00
|
|
|
{{ end }}
|
|
|
|
<section class="page-list">
|
|
|
|
{{ $pgFilter1 := where .Site.RegularPages "Draft" false }}
|
|
|
|
{{ $pgFilter2 := where .Site.RegularPages "Params.date" "!=" nil }}
|
2024-09-27 20:45:08 +02:00
|
|
|
<!-- {{ $pgFilter3 := where .Site.RegularPages "Params.hidefromhome" "!=" true }} -->
|
2024-09-27 15:36:01 +02:00
|
|
|
{{ $pgFilter := $pgFilter1 | intersect $pgFilter2 | intersect $pgFilter3}}
|
|
|
|
{{ range (.Paginate $pgFilter).Pages }}
|
2023-04-25 15:43:15 +02:00
|
|
|
<h2 class="content-title">
|
|
|
|
{{ if .IsNode }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title}}</a>
|
|
|
|
{{ else }}
|
2023-05-25 13:03:42 +02:00
|
|
|
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft{{end}}</a>
|
2023-04-15 01:36:29 +02:00
|
|
|
{{ end }}
|
2023-04-25 15:43:15 +02:00
|
|
|
</h2>
|
|
|
|
|
|
|
|
{{ if .Description }}
|
|
|
|
<p>{{ .Description }}</p>
|
|
|
|
{{ else }}
|
2023-04-25 16:45:22 +02:00
|
|
|
{{ if .Site.Params.showSummary }}
|
2023-04-25 15:43:15 +02:00
|
|
|
<p>{{ truncate 140 .Summary }}</p>
|
2023-04-17 19:01:23 +02:00
|
|
|
{{ end }}
|
2023-04-25 16:45:22 +02:00
|
|
|
{{ end }}
|
2023-04-25 15:43:15 +02:00
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ if and (.Paginator) (gt .Paginator.TotalPages 1) }}
|
|
|
|
<hr />
|
|
|
|
|
2024-12-08 03:20:32 +01:00
|
|
|
<section id="pagination" class="pagination">
|
2024-12-08 03:17:31 +01:00
|
|
|
|
2023-04-25 15:43:15 +02:00
|
|
|
<span class="previous-page">
|
|
|
|
{{ if .Paginator.HasPrev }}
|
|
|
|
<a class="link-reverse" href="{{.Paginator.Prev.URL}}">«</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="pagination-indicator">
|
|
|
|
{{.Paginator.PageNumber}} / {{.Paginator.TotalPages}}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="next-page">
|
|
|
|
{{ if .Paginator.HasNext }}
|
|
|
|
<a class="link-reverse" href="{{.Paginator.Next.URL}}">»</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
|
2024-12-08 03:20:32 +01:00
|
|
|
</section>
|
2024-12-08 03:17:31 +01:00
|
|
|
|
2023-04-25 15:43:15 +02:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ partial "footer.html" . }}
|
2023-04-15 01:36:29 +02:00
|
|
|
</article>
|
|
|
|
{{ end }}
|