From f2d6e11e4d94627426e3eba1aa41a641c042b865 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 15 Oct 2023 17:17:20 -0400 Subject: themes/default/layouts/partials/function-generate-feeds: Add truncation indicator --- themes/default/layouts/partials/function-generate-feeds.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/default/layouts/partials') 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) -- cgit v1.2.3