summaryrefslogtreecommitdiff
path: root/themes/cranky/layouts/_default/list.html
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-11-14 17:14:20 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-11-14 17:14:20 -0500
commit81618e8bb6f00b3b74c30c1cc75a782cf266efd6 (patch)
tree3c2e85db1c401471004e5ca1241fa54e707c989f /themes/cranky/layouts/_default/list.html
initial commit
Diffstat (limited to 'themes/cranky/layouts/_default/list.html')
-rw-r--r--themes/cranky/layouts/_default/list.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/themes/cranky/layouts/_default/list.html b/themes/cranky/layouts/_default/list.html
new file mode 100644
index 0000000..ada7939
--- /dev/null
+++ b/themes/cranky/layouts/_default/list.html
@@ -0,0 +1,28 @@
+{{ define "title" -}}
+{{ .Title | title }}
+{{- end }}
+{{ define "main" -}}
+{{ .Content }}
+<div class="post-list">
+{{- range.Pages }}
+<div class="post-item">
+
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a><br>
+ <small class="post-summary">{{ .Summary | truncate 220 " ..." }} </small>
+ <small class="post-date">
+ {{- if .Param "datesinlist" }}
+ <br>
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
+ {{ .Date.Format "(2006-01-02)" }}</time>
+ {{ end -}}
+ </small>
+ {{- if .Param "authorsinlist" }}
+ {{ with .Params.authors }}
+ by
+ {{ delimit . ", " " and " }}
+ {{end}}
+ {{ end -}}
+</div>
+{{- end }}
+</div>
+{{- end }}