From 04e10eb676616be8a8d1b00dcea8bb1a9b938727 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Tue, 27 Sep 2022 23:04:06 +0200 Subject: [PATCH] Some more fuckery with post listing --- layouts/_default/index.html | 5 +++-- layouts/_default/single.html | 4 ---- static/style.css | 12 +++++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 237bcac..229bd9a 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -10,13 +10,14 @@ {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} - - {{ range .Paginator.Pages }} +
+ {{ range first 5 .Paginator.Pages }} +
{{ .Title | markdownify}} {{ .Params.Date.Format "2006-01-02" }} {{ .Params.Author }} {{ range .Params.tags }} #{{ . }}  {{ end }}- {{ .ReadingTime }} min read ({{ .WordCount }} words)