breaking change in configuration

This commit is contained in:
Mivinci 2022-11-08 23:10:57 +08:00
parent f1b32bd47e
commit 0ca65fbca5
20 changed files with 373 additions and 361 deletions

View file

@ -1,12 +1,12 @@
{{ define "main" }}
<main class="container mx-auto">
<h2 class="mt-8 text-3xl font-bold">{{ .Site.Params.iam }} {{ .Site.Author.name }}</h2>
<p class="mt-0 mb-0">{{ .Site.Author.slogon }}</p>
<h2 class="mt-8 text-3xl font-bold">{{ .Site.Params.greet }}</h2>
<p class="mt-0 mb-0">{{ .Site.Author.status }}</p>
<p class="mt-3 mb-3 home-intro">{{ .Site.Author.description | markdownify | safeHTML }}</p>
{{ if eq .Paginator.PageNumber 1 }}
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ .Site.Params.recent }}</h3>
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ T "recent" }}</h3>
{{ else }}
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ .Site.Params.older }}</h3>
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ T "older" }}</h3>
{{ end }}
<div>
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}