From eed43305c355d112693877f4822df7b7b58b07ed Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 23 Nov 2023 17:53:39 -0500 Subject: Showcase project descriptions --- themes/cranky/layouts/projects/list.html | 5 ++--- themes/cranky/layouts/shortcodes/prj.html | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'themes') diff --git a/themes/cranky/layouts/projects/list.html b/themes/cranky/layouts/projects/list.html index 9dc5286..0767875 100644 --- a/themes/cranky/layouts/projects/list.html +++ b/themes/cranky/layouts/projects/list.html @@ -81,9 +81,8 @@ time { {{- range.Pages }}
{{ .Title }} - {{- if .Param "datesinlist" }} {{ end -}} - {{ $summary := index (split .Content "

") 0 }} -

{{ $summary | plainify }}

+ {{- if .Param "datesinlist" }} {{ end -}} +

{{ .Summary | truncate 220 "..." }}

{{- if .Param "authorsinlist" }} {{ with .Params.authors }} by diff --git a/themes/cranky/layouts/shortcodes/prj.html b/themes/cranky/layouts/shortcodes/prj.html index 2d7df98..0db4abe 100644 --- a/themes/cranky/layouts/shortcodes/prj.html +++ b/themes/cranky/layouts/shortcodes/prj.html @@ -8,7 +8,8 @@

- {{ .Summary | truncate 220 "..." }} + {{ $summary := index (split .Content "

") 0 }} + {{ $summary | plainify }}

-- cgit v1.2.3