diff options
author | tdro <tdro@noreply.example.com> | 2022-12-12 00:31:26 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-12 00:31:26 -0500 |
commit | 7cf0ccd9db1bc27748b130e2be66d7ed615ba692 (patch) | |
tree | 62e6df7cbaf356ffbe143cc6c2ac671837e8746c /themes | |
parent | 2b7fb5cb0210ab85e4d355eabde798a785ec9c18 (diff) | |
download | canory-7cf0ccd9db1bc27748b130e2be66d7ed615ba692.tar.gz canory-7cf0ccd9db1bc27748b130e2be66d7ed615ba692.tar.bz2 canory-7cf0ccd9db1bc27748b130e2be66d7ed615ba692.zip |
themes/default/layouts/partials/web-ring: Show message for no content
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/partials/web-ring.html | 8 |
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> |