diff options
| author | tdro <tdro@noreply.example.com> | 2022-06-02 20:58:01 -0400 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2022-06-02 20:58:01 -0400 |
| commit | 7fdde9da677a73354447df77e513fdea966eaee1 (patch) | |
| tree | a11fd07342e0f33b078ae414fbdb501446cfcaa8 | |
| parent | 4e26be95074a0be4f9cd45a1f3fc9b6dfe0790bd (diff) | |
| download | canory-7fdde9da677a73354447df77e513fdea966eaee1.tar.gz canory-7fdde9da677a73354447df77e513fdea966eaee1.tar.bz2 canory-7fdde9da677a73354447df77e513fdea966eaee1.zip | |
themes/default/layouts/partials/feeds-generate: Use single date default
| -rw-r--r-- | themes/default/layouts/partials/feeds-generate.html | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/themes/default/layouts/partials/feeds-generate.html b/themes/default/layouts/partials/feeds-generate.html index e32c250..79a951f 100644 --- a/themes/default/layouts/partials/feeds-generate.html +++ b/themes/default/layouts/partials/feeds-generate.html @@ -21,9 +21,7 @@ {{- $sourceTitle := "No source title found" -}} {{- $sourceLink := "https://example.com/" -}} {{- $sourceDescription := "No source description found." -}} - {{- $date := now.Format "January 2, 2006" -}} - {{- $dateTime := now.Format "2006-01-02T15:04:05Z" -}} - {{- $dateTitle := now.Format "Monday, January 2 2006 at 15:04:05 MST" -}} + {{- $date := now.Format "2006-01-02T15:04:05Z" -}} {{ with .channel -}} @@ -61,10 +59,7 @@ {{ $title = .title -}} {{ end -}} - {{ $date = .updated -}} - {{ $dateTime = .updated -}} - {{ $dateTitle = .updated -}} - + {{ $date = .updated -}} {{ $link = .id -}} {{ with .content -}} @@ -83,8 +78,8 @@ $feeds = $feeds | append (dict "FeedContent" ($content | plainify | htmlUnescape) "FeedDate" ($date | plainify | htmlUnescape | time.Format "January 2, 2006") - "FeedDateTime" ($dateTime | plainify | htmlUnescape | time.Format "2006-01-02T15:04:05Z") - "FeedDateTitle" ($dateTitle | plainify | htmlUnescape | time.Format "Monday, January 2 2006 at 15:04:05 MST") + "FeedDateTime" ($date | plainify | htmlUnescape | time.Format "2006-01-02T15:04:05Z") + "FeedDateTitle" ($date | plainify | htmlUnescape | time.Format "Monday, January 2 2006 at 15:04:05 MST") "FeedDescription" (delimit ($description | plainify | htmlUnescape | findRE "^([^.|:|?|!]+)") " ") "FeedLink" ($link | plainify | htmlUnescape) "FeedName" (delimit ((delimit (first 3 (split ($sourceTitle | plainify | htmlUnescape) " ")) " ") | findRE "^([^.|:|?|!]+)") " " | replaceRE "[^a-zA-Z ]" "") |
