-{{ $paginator := .Paginate (where .Data.Pages.ByLastmod.Reverse "Section" .Section) 12 }}
-{{- if (gt (len (findRE "<h1" .Content)) 0) -}}
-{{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "</article>" | replaceRE "\n" "\n " | safeHTML }}</article>
-{{- else -}}
-{{ .Content }}
-{{- end -}}
- {{- if gt (len $paginator.Pages) 0 }}
+{{- .Content }}
+{{- $paginator := .Paginate .Pages.ByPublishDate.Reverse 6 }} <!-- 12 -->
+{{- $.Scratch.Set "cardskip" 0 }}
+{{- if eq $paginator.PageNumber 1 }}
+{{- $.Scratch.Set "cardskip" 4 }}
+{{- 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 }}
+ <article>
+ <a class="speedy-header" href="{{ absURL .URL }}">
+ <div class="speedy-img"><div style="background-image: url({{ relURL $ph }});"></div></div>
+ <h1>
+ {{ .Title }}
+ <div style="font-weight: normal; font-size: 0.8rem;">{{ dateFormat "January 2 2006 15:04 MST" .PublishDate }}</div>
+ </h1>
+ <div class="speedy-img" style="height: 0px"></div>
+ </a>
+ {{ .Content | safeHTML | truncate 1024 }}
+ {{- if .Truncated }}
+ <div align="right"><a href="{{ absURL .URL }}">Read More...</a></div>
+ {{- end }}
+ </article>
+{{- end }}
+{{- end }}
+{{- $cardskip := $.Scratch.Get "cardskip" }}
+{{- if gt (len $paginator.Pages) $cardskip }}