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 | |
parent | b2819facf324840da90342e43689f94169175c77 (diff) |
Showcase project descriptions
Diffstat (limited to 'themes/cranky')
-rw-r--r-- | themes/cranky/layouts/projects/list.html | 5 | ||||
-rw-r--r-- | themes/cranky/layouts/shortcodes/prj.html | 3 |
2 files changed, 4 insertions, 4 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 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 @@ <div class="filledbar"></div> </div> <p class="summary"> - {{ .Summary | truncate 220 "..." }} + {{ $summary := index (split .Content "</p>") 0 }} + {{ $summary | plainify }} </p> </a> <!-- End the loop --> |