hugo-theme-minima/layouts/index.html

23 lines
847 B
HTML
Raw Normal View History

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>
{{ 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>
{{ else }}
2022-11-08 16:10:57 +01:00
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ T "older" }}</h3>
{{ end }}
<div>
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}
{{ range $paginator.Pages }}
2022-11-08 11:07:48 +01:00
{{ partial "item.html" . }}
{{ end }}
{{ 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>
<div id="friends"></div>
{{ end }}
</main>
2021-07-18 10:34:01 +02:00
{{ end }}