X-Git-Url: https://git.kengrimes.com/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=layouts%2F_default%2Flist.html;h=7a0b267b1df2dbabd17d2be6a30fae726b464920;hp=46ef1e11cc21f495c841a6163ab2599c4bd1a315;hb=c1fdc7cadf2874c660a53de3003668edc36e6200;hpb=89599f9d5c5e4e5b8fa50c39e34dd502293fa1f7 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 46ef1e1..7a0b267 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,25 +1,24 @@ {{- define "main" -}} {{- .Content }} -{{- $paginator := .Paginate .Pages.ByPublishDate.Reverse 6 }} +{{- $paginator := .Paginate .Pages.ByPublishDate.Reverse 12 }} {{- $.Scratch.Set "cardskip" 0 }} {{- if eq $paginator.PageNumber 1 }} -{{- $.Scratch.Set "cardskip" 4 }} +{{- $.Scratch.Set "cardskip" 6 }} {{- range first ($.Scratch.Get "cardskip") $paginator.Pages }} {{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) (cond (or (not .Parent.Params.header) (not (fileExists (printf "static/%s" .Parent.Params.header)))) "/img/speedy.png" .Parent.Params.header) .Params.header }} -
+
-
-

+

+ {{ .Title }}
{{ dateFormat "January 2 2006 15:04 MST" .PublishDate }}

-
{{ .Content | safeHTML | truncate 1024 }} {{- if .Truncated }}
Read More...
{{- end }} -
+ {{- end }} {{- end }} {{- $cardskip := $.Scratch.Get "cardskip" }}