commit 198278863949653c7b4d8e482ac3dd5b0e3ff13c
parent 371d331ae204c0e6890e753d00e61628019337cd
Author: Hugo Soucy <hugo@soucy.cc>
Date: Wed, 30 Nov 2022 14:12:34 -0500
Test if collection
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/index.html b/templates/index.html
@@ -3,7 +3,7 @@
media="screen"
rel="stylesheet"/>
<%- content -%>
-<% if #collection >= 1 then %>
+<% if collection and #collection >= 1 then %>
<aside class="main__aside">
<small>Dernière publication</small>
<p>