hugo-theme-minima/layouts/index.html
2022-02-17 18:18:35 +08:00

21 lines
No EOL
682 B
HTML

{{ define "main" }}
<main>
<h2 class="mt-8 mb-1">{{ .Site.Params.iam }} {{ .Site.Author.name }}</h2>
<p class="my-0">{{ .Site.Author.slogon }}</p>
<p class="my-3 home-intro">{{ .Site.Author.description | markdownify | safeHTML }}</p>
{{ if eq .Paginator.PageNumber 1 }}
<h3 class="my-6">Recent Posts</h3>
{{ else }}
<h3 class="my-6">Older Posts</h3>
{{ end }}
<div>
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}
{{ range $paginator.Pages }}
{{ partial "list.html" . }}
{{ end }}
{{ partial "paginator.html" . }}
</div>
<h3 class="my-6">{{ .Site.Params.friends.title }}</h3>
<div id="friends"></div>
</main>
{{ end }}