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/shortcodes | |
parent | b2819facf324840da90342e43689f94169175c77 (diff) |
Showcase project descriptions
Diffstat (limited to 'themes/cranky/layouts/shortcodes')
-rw-r--r-- | themes/cranky/layouts/shortcodes/prj.html | 3 |
1 files changed, 2 insertions, 1 deletions
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 --> |