From 7f5c73bc0384f1a0ffec2701d4183e2208007b40 Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 21 Dec 2022 00:20:05 -0500 Subject: themes/default/layouts/partials: Prevent feed fetches from multiplying By limiting to section. Add hugo option to version shortcode --- .../default/layouts/_default/section.webring.html | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 themes/default/layouts/_default/section.webring.html (limited to 'themes/default/layouts/_default/section.webring.html') diff --git a/themes/default/layouts/_default/section.webring.html b/themes/default/layouts/_default/section.webring.html new file mode 100644 index 0000000..8a90f96 --- /dev/null +++ b/themes/default/layouts/_default/section.webring.html @@ -0,0 +1,33 @@ +{{- $author := partial "function-authors-data.html" . -}} +{{- $feeds := partial "function-generate-feeds.html" . -}} + +{{ range first 3 (uniq (sort $feeds "FeedDateTime" "desc")) }} + +
+ + {{ .FeedTitle }} + +
+ +

+ {{ "--" | markdownify }} + {{ if gt (len .FeedDescriptionShort) (len .FeedContentShort) -}} + {{ or .FeedDescriptionShort .FeedTitle }} + {{- else -}} + {{ or .FeedContentShort .FeedTitle }} + {{- end }} + — +

+ + {{ .FeedSourceTitle }} + +
+{{ end }} -- cgit v1.2.3