hugo-theme-minima/layouts/index.html

23 lines
732 B
HTML
Raw Normal View History

2021-07-18 10:34:01 +02:00
{{ define "main" }}
<main>
2021-09-09 09:56:22 +02:00
<h2 class="mt-8 mb-1">{{ .Site.Params.iam }} {{ .Site.Author.name }}</h2>
2021-08-29 17:55:45 +02:00
<p class="my-0">{{ .Site.Author.slogon }}</p>
2021-11-27 16:56:38 +01:00
<p class="my-3 home-intro">{{ .Site.Author.description | markdownify | safeHTML }}</p>
2021-07-18 10:34:01 +02:00
{{ if eq .Paginator.PageNumber 1 }}
2021-09-09 09:56:22 +02:00
<h3 class="my-6">Recent Posts</h3>
2021-07-18 10:34:01 +02:00
{{ else }}
2021-09-09 09:56:22 +02:00
<h3 class="my-6">Older Posts</h3>
2021-07-18 10:34:01 +02:00
{{ end }}
<div>
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}
{{ range $paginator.Pages }}
2021-09-09 09:56:22 +02:00
{{ partial "list.html" . }}
2021-07-18 10:34:01 +02:00
{{ end }}
{{ partial "paginator.html" . }}
</div>
2022-02-17 11:20:43 +01:00
{{ if .Site.Params.friends.feeds }}
2022-02-17 11:18:35 +01:00
<h3 class="my-6">{{ .Site.Params.friends.title }}</h3>
<div id="friends"></div>
2022-02-17 11:20:43 +01:00
{{ end }}
2021-07-18 10:34:01 +02:00
</main>
{{ end }}