2021-07-18 10:34:01 +02:00
|
|
|
{{ define "main" }}
|
2022-11-08 11:07:48 +01:00
|
|
|
<main class="container mx-auto">
|
2022-11-08 16:10:57 +01:00
|
|
|
<h2 class="mt-8 text-3xl font-bold">{{ .Site.Params.greet }}</h2>
|
|
|
|
<p class="mt-0 mb-0">{{ .Site.Author.status }}</p>
|
2022-11-08 11:07:48 +01:00
|
|
|
<p class="mt-3 mb-3 home-intro">{{ .Site.Author.description | markdownify | safeHTML }}</p>
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ if eq .Paginator.PageNumber 1 }}
|
2022-11-08 16:10:57 +01:00
|
|
|
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ T "recent" }}</h3>
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ else }}
|
2022-11-08 16:10:57 +01:00
|
|
|
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ T "older" }}</h3>
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ end }}
|
|
|
|
<div>
|
|
|
|
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}
|
|
|
|
{{ range $paginator.Pages }}
|
2023-05-12 14:30:35 +02:00
|
|
|
{{ if ne .Page.Layout "search" }}
|
2022-11-08 11:07:48 +01:00
|
|
|
{{ partial "item.html" . }}
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ end }}
|
2023-05-12 14:30:35 +02:00
|
|
|
{{ end }}
|
2022-11-07 09:57:21 +01:00
|
|
|
{{ partial "paginator.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ if .Site.Params.friends.feeds }}
|
2022-11-08 11:07:48 +01:00
|
|
|
<h3 class="mt-6 mb-6 text-2xl font-semibold">{{ .Site.Params.friends.title }}</h3>
|
2022-11-07 09:57:21 +01:00
|
|
|
<div id="friends"></div>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
2021-07-18 10:34:01 +02:00
|
|
|
{{ end }}
|