aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-05-02 18:18:39 -0400
committertdro <tdro@noreply.example.com>2023-05-02 18:18:39 -0400
commit9544fa0c00aec79bff38f43bbdd8fc2ab80f0557 (patch)
treeec42df1dcf41a05f47d9b94854f85e9f1a8eda79 /themes
parentff76b0659a5d87ab71c1f47f1094dc0569dd0fa3 (diff)
downloadcanory-9544fa0c00aec79bff38f43bbdd8fc2ab80f0557.tar.gz
canory-9544fa0c00aec79bff38f43bbdd8fc2ab80f0557.tar.bz2
canory-9544fa0c00aec79bff38f43bbdd8fc2ab80f0557.zip
themes/default/layouts/partials/following-list: Avoid nil
Diffstat (limited to 'themes')
-rw-r--r--themes/default/layouts/partials/following-list.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/following-list.html b/themes/default/layouts/partials/following-list.html
index 165d699..9a728d4 100644
--- a/themes/default/layouts/partials/following-list.html
+++ b/themes/default/layouts/partials/following-list.html
@@ -5,7 +5,9 @@
<h1>Following</h1>
<aside>
{{- if and $author.feeds.rss (fileExists $following) -}}
- {{- (resources.Get $following).Content | safeHTML -}}
+ {{- with $following = resources.Get $following -}}
+ {{- $following.Content | safeHTML -}}
+ {{- end -}}
{{- else -}}
<footer>
<code>No feeds found!</code>