diff options
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 |