fix style

This commit is contained in:
Mivinci 2022-04-14 09:49:24 +08:00
parent 5a2a7cc35a
commit ef4d32b949
3 changed files with 7 additions and 3 deletions

View file

@ -47,7 +47,8 @@
} }
.md li { .md li {
margin-bottom: 1rem; margin-bottom: .5rem;
line-height: 1.5;
} }
.md ol, .md ol,

View file

@ -48,6 +48,9 @@ commentOnAllPosts = true
# toc decides the shape of the toc button. e.g. default, lines, bar # toc decides the shape of the toc button. e.g. default, lines, bar
toc = "lines" toc = "lines"
recent = "Recent Posts"
older = "Older Posts"
# Disqus configuration # Disqus configuration
[params.disqus] [params.disqus]
shortname = "hugo-minima" shortname = "hugo-minima"

View file

@ -4,9 +4,9 @@
<p class="my-0">{{ .Site.Author.slogon }}</p> <p class="my-0">{{ .Site.Author.slogon }}</p>
<p class="my-3 home-intro">{{ .Site.Author.description | markdownify | safeHTML }}</p> <p class="my-3 home-intro">{{ .Site.Author.description | markdownify | safeHTML }}</p>
{{ if eq .Paginator.PageNumber 1 }} {{ if eq .Paginator.PageNumber 1 }}
<h3 class="my-6">Recent Posts</h3> <h3 class="my-6">{{ .Site.Params.recent }}</h3>
{{ else }} {{ else }}
<h3 class="my-6">Older Posts</h3> <h3 class="my-6">{{ .Site.Params.older }}</h3>
{{ end }} {{ end }}
<div> <div>
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }} {{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}