3 {{- $paginator := .Paginate .Pages.ByPublishDate.Reverse
6 }}
<!-- 12 -->
4 {{- $.Scratch.Set
"cardskip" 0 }}
5 {{- if eq $paginator.PageNumber
1 }}
6 {{- $.Scratch.Set
"cardskip" 4 }}
7 {{- range first ($.Scratch.Get
"cardskip") $paginator.Pages }}
8 {{- $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 }}
10 <a class=
"speedy-header" href=
"{{ absURL .URL }}">
11 <div class=
"speedy-img"><div style=
"background-image: url({{ relURL $ph }});"></div></div>
14 <div style=
"font-weight: normal; font-size: 0.8rem;">{{ dateFormat
"January 2 2006 15:04 MST" .PublishDate }}
</div>
16 <div class=
"speedy-img" style=
"height: 0px"></div>
18 {{ .Content | safeHTML | truncate
1024 }}
20 <div align=
"right"><a href=
"{{ absURL .URL }}">Read More...
</a></div>
25 {{- $cardskip := $.Scratch.Get
"cardskip" }}
26 {{- if gt (len $paginator.Pages) $cardskip }}
27 <div class=
"speedy-cards">
28 {{- if gt $cardskip
1 }}
29 {{- range after $cardskip $paginator.Pages }}
30 {{- partial
"speedycard.html" . -}}
33 {{- range $paginator.Pages }}
34 {{- partial
"speedycard.html" . -}}
38 {{ partial
"pagination.html" . -}}