colorized light, text formatting
[kengrimes.com/theme.git] / layouts / _default / list.html
index 46ef1e1..7a0b267 100644 (file)
@@ -1,25 +1,24 @@
 {{- define "main" -}}
 {{- .Content }}
-{{- $paginator := .Paginate .Pages.ByPublishDate.Reverse 6 }} <!-- 12 -->
+{{- $paginator := .Paginate .Pages.ByPublishDate.Reverse 12 }} <!-- 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 }}
-      <article>
+      <section>
       <a class="speedy-header" href="{{ absURL .URL }}">
-      <div class="speedy-img"><div style="background-image: url({{ relURL $ph }});"></div></div>
-      <h1>
+        <h1>
+        <img src="{{ absURL $ph }}">
          {{ .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>
+      </section>
 {{- end }}
 {{- end }}
 {{-  $cardskip := $.Scratch.Get "cardskip" }}