Initial Commit
[ancientarts.git] / hugo / themes / ancientarts / layouts / taxonomy / list.html
1 {{- define "main" -}}
2 {{- if (gt (len .Content) 0) -}}
3 <section>
4 {{ .Content }}
5 </section>
6 {{- end -}}
7 {{- if gt (len .Data.Pages) 0 }}
8 <div class="speedy-cards">
9 {{- $sh := cond (not .Params.header) .Site.Home.Params.header .Params.header }}
10 {{- range .Pages }}
11 <a href="{{ .Permalink }}">
12 {{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) $sh .Params.header }}
13 <img style="background-image: url({{ relURL $ph }})">
14 <div style="font-size: 0.5em; float: right;">{{ .Params.categories }}</div>
15 <div>{{ .PublishDate.Format "January 2 2006" }}</div>
16 {{.Title}}
17 <div>{{ truncate 100 .Summary }}</div>
18 </a><br>
19 {{- end }}
20 </div>
21 {{- end }}
22 {{- end -}}