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 --- themes/default/layouts/partials/webring.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 themes/default/layouts/partials/webring.html (limited to 'themes/default/layouts/partials/webring.html') diff --git a/themes/default/layouts/partials/webring.html b/themes/default/layouts/partials/webring.html new file mode 100644 index 0000000..0f97624 --- /dev/null +++ b/themes/default/layouts/partials/webring.html @@ -0,0 +1,15 @@ +{{- $feeds := partial "function-generate-feeds.html" . -}} +{{- $webring := print "public/" .Section "/webring.html" -}} + + +

Web Ring

+ {{ if and $feeds (fileExists $webring) }} + + {{ else }} + + {{ end }} +
-- cgit v1.2.3