Add an empty handler
[styx.blog] / core / templates / core / post_list.html
index bca4c13..36acc53 100644 (file)
@@ -26,6 +26,8 @@
     </a>
   </footer>
 </article>
+{% empty %}
+<p>No posts.</p>
 {% endfor %}
 
 {% include 'core/page_nav.html' %}