diff options
author | tdro <tdro@noreply.example.com> | 2023-05-02 18:18:39 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-05-02 18:18:39 -0400 |
commit | 9544fa0c00aec79bff38f43bbdd8fc2ab80f0557 (patch) | |
tree | ec42df1dcf41a05f47d9b94854f85e9f1a8eda79 | |
parent | ff76b0659a5d87ab71c1f47f1094dc0569dd0fa3 (diff) | |
download | canory-9544fa0c00aec79bff38f43bbdd8fc2ab80f0557.tar.gz canory-9544fa0c00aec79bff38f43bbdd8fc2ab80f0557.tar.bz2 canory-9544fa0c00aec79bff38f43bbdd8fc2ab80f0557.zip |
themes/default/layouts/partials/following-list: Avoid nil
-rw-r--r-- | themes/default/layouts/partials/following-list.html | 4 |
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> |