--- /dev/null
+{{- define "main" -}}
+{{- if (gt (len .Content) 0) -}}
+ <article>
+ {{ .Content }}
+ </article>
+{{- end -}}
+ {{- if gt (len .Pages) 0 }}
+ <ul class="speedy-list">
+ {{- range .Pages }}
+ <li>
+ <a href="{{ .Permalink }}"
+ {{- if (not (fileExists (printf "static/img/tax/%s.png" (lower .Title)))) }}
+ style="background: no-repeat center/100% url({{ relURL `/img/tax/_default.png` }})">
+ {{ .Title }}
+ {{- else }}>
+ <img src="/img/tax/{{ lower .Title }}.png" alt="{{ .Title }}"/>
+ {{- end }}
+ </a>
+ </li>
+ {{- end }}
+ </ul>
+ {{- end }}
+{{- end -}}