aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-10-15 17:17:20 -0400
committertdro <tdro@noreply.example.com>2023-10-15 17:17:20 -0400
commitf2d6e11e4d94627426e3eba1aa41a641c042b865 (patch)
treeabd4d7a2ab3a3c0043c913cb9289330bbfa5d6b3 /themes/default/layouts/partials
parentb196e28e5faad6bf5c73f1bbbc60b8e138c63dfc (diff)
downloadcanory-f2d6e11e4d94627426e3eba1aa41a641c042b865.tar.gz
canory-f2d6e11e4d94627426e3eba1aa41a641c042b865.tar.bz2
canory-f2d6e11e4d94627426e3eba1aa41a641c042b865.zip
themes/default/layouts/partials/function-generate-feeds: Add truncation indicator
Diffstat (limited to 'themes/default/layouts/partials')
-rw-r--r--themes/default/layouts/partials/function-generate-feeds.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html
index 348a8e9..8ae6045 100644
--- a/themes/default/layouts/partials/function-generate-feeds.html
+++ b/themes/default/layouts/partials/function-generate-feeds.html
@@ -159,12 +159,12 @@
{{-
$feeds = $feeds | append (dict
"FeedContent" ($content | plainify | html | htmlUnescape)
- "FeedContentShort" (delimit (first 2 (split ($content | plainify | html | htmlUnescape) "\n")) " " | truncate 250)
+ "FeedContentShort" (delimit (first 2 (split ($content | plainify | html | htmlUnescape) "\n")) " " | truncate 250 "...")
"FeedDate" ($date | plainify | html | htmlUnescape | time.Format "Mon Jan 2 2006")
"FeedDateTime" ($date | plainify | html | htmlUnescape | time.Format "2006-01-02T15:04:05Z")
"FeedDateTitle" ($date | plainify | html | htmlUnescape | time.Format "Monday January 2 2006 at 15:04:05 MST")
"FeedDescription" ($description | plainify | html | htmlUnescape)
- "FeedDescriptionShort" (delimit (first 2 (split ($description | plainify | html | htmlUnescape) "\n")) " " | truncate 250)
+ "FeedDescriptionShort" (delimit (first 2 (split ($description | plainify | html | htmlUnescape) "\n")) " " | truncate 250 "...")
"FeedEnclosure" ($enclosure | plainify | html | htmlUnescape)
"FeedImageLink" ($imageLink | plainify | html | htmlUnescape)
"FeedLink" ($link | plainify | html | htmlUnescape)