X-Git-Url: https://www.kengrimes.com/gitweb/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=layouts%2Ftaxonomy%2Flist.html;fp=layouts%2Ftaxonomy%2Flist.html;h=96378f89efcdce50bb42c4b8791dbf487f175b20;hp=0000000000000000000000000000000000000000;hb=f9e1ed5e957f44d6cc608156ed922d0c08da7d73;hpb=3bb959dc9aa6955c1d67f45d811a1af7496f3d80 diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html new file mode 100644 index 0000000..96378f8 --- /dev/null +++ b/layouts/taxonomy/list.html @@ -0,0 +1,22 @@ +{{- define "main" -}} +{{- if (gt (len .Content) 0) -}} +
+ {{ .Content }} +
+{{- end -}} + {{- if gt (len .Data.Pages) 0 }} +
+ {{- $sh := cond (not .Params.header) .Site.Home.Params.header .Params.header }} + {{- range .Pages }} + + {{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) $sh .Params.header }} + +
{{ .Params.categories }}
+
{{ .PublishDate.Format "January 2 2006" }}
+ {{.Title}} +
{{ truncate 100 .Summary }}
+

+ {{- end }} +
+ {{- end }} +{{- end -}}