aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-generate-feeds.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/function-generate-feeds.html')
-rw-r--r--themes/default/layouts/partials/function-generate-feeds.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html
index 32f340d..348a8e9 100644
--- a/themes/default/layouts/partials/function-generate-feeds.html
+++ b/themes/default/layouts/partials/function-generate-feeds.html
@@ -19,7 +19,7 @@
{{- with $fetch | transform.Unmarshal -}}
{{- $content := "" -}}
- {{- $date := now.Format "2006-01-02T15:04:05Z" -}}
+ {{- $date := now | time.Format "2006-01-02T15:04:05Z" -}}
{{- $description := "" -}}
{{- $enclosure := "" -}}
{{- $imageLink := "" -}}
@@ -160,9 +160,9 @@
$feeds = $feeds | append (dict
"FeedContent" ($content | plainify | html | htmlUnescape)
"FeedContentShort" (delimit (first 2 (split ($content | plainify | html | htmlUnescape) "\n")) " " | truncate 250)
- "FeedDate" ($date | plainify | html | htmlUnescape | time.Format "January 2, 2006")
+ "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")
+ "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)
"FeedEnclosure" ($enclosure | plainify | html | htmlUnescape)