diff options
| author | tdro <tdro@noreply.example.com> | 2022-06-05 01:01:02 -0400 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2022-06-05 01:01:02 -0400 |
| commit | 3cad4f2e6544e93cca59986ba41c07e8c273cd7d (patch) | |
| tree | efb12ccbdd31d3534d4e42ed7d7f46ff9df3701c | |
| parent | cd68dc36d2047eae228c98448798f092ec5119bc (diff) | |
| download | canory-3cad4f2e6544e93cca59986ba41c07e8c273cd7d.tar.gz canory-3cad4f2e6544e93cca59986ba41c07e8c273cd7d.tar.bz2 canory-3cad4f2e6544e93cca59986ba41c07e8c273cd7d.zip | |
themes/default/layouts/partials/feeds-generate: Reduce feed name to two key words
| -rw-r--r-- | themes/default/layouts/partials/feeds-generate.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/feeds-generate.html b/themes/default/layouts/partials/feeds-generate.html index a9fb392..2e17ced 100644 --- a/themes/default/layouts/partials/feeds-generate.html +++ b/themes/default/layouts/partials/feeds-generate.html @@ -87,7 +87,7 @@ {{ end -}} - {{- /* Common time zone typos */ -}} + {{- /* Common time zone typos. */ -}} {{ $date = strings.Replace $date "G6T" "GST" }} {{- /* If missing seconds split and try again. */ -}} @@ -106,7 +106,7 @@ "FeedDescriptionShort" (delimit (first 1 (split ($description | plainify | htmlUnescape) "\n")) " " | truncate 250) "FeedEnclosure" ($enclosure | plainify | htmlUnescape) "FeedLink" ($link | plainify | htmlUnescape) - "FeedName" (delimit ((delimit (first 3 (split ($sourceTitle | plainify | htmlUnescape) " ")) " ") | findRE "^([^.|:|?|!]+)") " " | replaceRE "[^a-zA-Z ]" "") + "FeedName" (delimit ((delimit (first 2 (split ($sourceTitle | plainify | htmlUnescape) " ")) " ") | findRE "^([^.|?|!|\n|\"|]+)") " " | replaceRE "[^a-zA-Z ]" "") "FeedSourceDescription" ($sourceDescription | plainify | htmlUnescape) "FeedSourceDomain" (($sourceLink | plainify | htmlUnescape | urls.Parse).Host) "FeedSourceLink" ($sourceLink | plainify | htmlUnescape) |
