aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/webring.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-21 00:20:05 -0500
committertdro <tdro@noreply.example.com>2022-12-21 00:20:05 -0500
commit7f5c73bc0384f1a0ffec2701d4183e2208007b40 (patch)
tree16f170cea156fa4e2d904c2f5fdb704843d618d1 /themes/default/layouts/partials/webring.html
parent2fb41a96097f335b3e5dbeb8dd0a2ad67bde2d3f (diff)
downloadcanory-7f5c73bc0384f1a0ffec2701d4183e2208007b40.tar.gz
canory-7f5c73bc0384f1a0ffec2701d4183e2208007b40.tar.bz2
canory-7f5c73bc0384f1a0ffec2701d4183e2208007b40.zip
themes/default/layouts/partials: Prevent feed fetches from multiplying0.11.9
By limiting to section. Add hugo option to version shortcode
Diffstat (limited to 'themes/default/layouts/partials/webring.html')
-rw-r--r--themes/default/layouts/partials/webring.html15
1 files changed, 15 insertions, 0 deletions
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>
+ <h1>Web Ring</h1>
+ {{ if and $feeds (fileExists $webring) }}
+ <aside>
+ {{- (resources.Get $webring).Content | safeHTML -}}
+ </aside>
+ {{ else }}
+ <footer>
+ <code>No content found!</code>
+ </footer>
+ {{ end }}
+</web-ring>