From 81618e8bb6f00b3b74c30c1cc75a782cf266efd6 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 14 Nov 2023 17:14:20 -0500 Subject: initial commit --- themes/cranky/layouts/projects/list.html | 96 ++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 themes/cranky/layouts/projects/list.html (limited to 'themes/cranky/layouts/projects/list.html') diff --git a/themes/cranky/layouts/projects/list.html b/themes/cranky/layouts/projects/list.html new file mode 100644 index 0000000..9dc5286 --- /dev/null +++ b/themes/cranky/layouts/projects/list.html @@ -0,0 +1,96 @@ +{{ define "title" -}} +{{ .Title | title }} +{{- end }} +{{ define "main" -}} +{{ .Content }} + +{{- range.Pages }} +
+ {{ .Title }} + {{- if .Param "datesinlist" }} {{ end -}} + {{ $summary := index (split .Content "

") 0 }} +

{{ $summary | plainify }}

+ {{- if .Param "authorsinlist" }} + {{ with .Params.authors }} + by + {{ delimit . ", " " and " }} + {{end}} + Read more... +
+ {{ end -}} +{{- end }} +{{- end }} -- cgit v1.2.3