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

23 lines
No EOL
732 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>
{{ if .Site.Params.friends.feeds }}
<h3 class="my-6">{{ .Site.Params.friends.title }}</h3>
<div id="friends"></div>
{{ end }}
</main>
{{ end }}