aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-12 00:31:26 -0500
committertdro <tdro@noreply.example.com>2022-12-12 00:31:26 -0500
commit7cf0ccd9db1bc27748b130e2be66d7ed615ba692 (patch)
tree62e6df7cbaf356ffbe143cc6c2ac671837e8746c
parent2b7fb5cb0210ab85e4d355eabde798a785ec9c18 (diff)
downloadcanory-7cf0ccd9db1bc27748b130e2be66d7ed615ba692.tar.gz
canory-7cf0ccd9db1bc27748b130e2be66d7ed615ba692.tar.bz2
canory-7cf0ccd9db1bc27748b130e2be66d7ed615ba692.zip
themes/default/layouts/partials/web-ring: Show message for no content
-rw-r--r--themes/default/layouts/partials/web-ring.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/web-ring.html b/themes/default/layouts/partials/web-ring.html
index 8228fbd..1d163af 100644
--- a/themes/default/layouts/partials/web-ring.html
+++ b/themes/default/layouts/partials/web-ring.html
@@ -2,6 +2,7 @@
<web-ring>
<h1>Web Ring</h1>
+ {{ if $feeds }}
<aside>
{{ range first 3 (uniq (sort $feeds "FeedDateTime" "desc")) }}
<web-ring-item>
@@ -33,5 +34,10 @@
</a>
</web-ring-item>
{{ end }}
- </aside>
+ </aside>
+ {{ else }}
+ <footer>
+ <code>No content found!</code>
+ </footer>
+ {{ end }}
</web-ring>