diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-23 17:53:39 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-23 17:53:39 -0500 |
commit | eed43305c355d112693877f4822df7b7b58b07ed (patch) | |
tree | 38e6d6f287f82bb2a3995d81fa54b690597950c1 /themes/cranky/layouts/projects | |
parent | b2819facf324840da90342e43689f94169175c77 (diff) |
Showcase project descriptions
Diffstat (limited to 'themes/cranky/layouts/projects')
-rw-r--r-- | themes/cranky/layouts/projects/list.html | 5 |
1 files changed, 2 insertions, 3 deletions
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 }} <div class="project-box"> <a class="project-title" href="{{ .RelPermalink }}">{{ .Title }}</a> - {{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> {{ end -}} - {{ $summary := index (split .Content "</p>") 0 }} - <p>{{ $summary | plainify }} </p> + {{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format " 2006 Jan 02" }}</time> {{ end -}} + <p>{{ .Summary | truncate 220 "..." }}</p> {{- if .Param "authorsinlist" }} {{ with .Params.authors }} by |