From fa965bd3f87fb20cf596087add5ffa161d4da5d3 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 28 Nov 2019 08:55:07 +0530 Subject: [PATCH] Simplify logic to show thumbnail in the blog post list - loads thumbnail from css style instead of placeholder image - to change the color of the thumbnail refer blog-post-placeholder class at the bottom of clean-blog.css --- templates/macros/blog.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 22f5e88..8966db3 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -4,7 +4,7 @@
{% set image = post.attachments.images.first() %} - {% if from_index %}

{% else %}

{% endif %} +

{% if image %}{% else %}
{% endif %}

{% if from_index %}

{{ post.title }}