From 3b02e29d418d62b263e7e67f1d6f917beeee97e1 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 28 Nov 2019 08:50:16 +0530 Subject: [PATCH 1/3] Create blog-post-placeholder style --- assets/u/static/css/clean-blog.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/u/static/css/clean-blog.css b/assets/u/static/css/clean-blog.css index 3f46709..e646062 100755 --- a/assets/u/static/css/clean-blog.css +++ b/assets/u/static/css/clean-blog.css @@ -433,3 +433,8 @@ body { width: 50%; text-align: center; } +.blog-post-placeholder { + width: 240px; + height: 240px; + background-color: #eee; +} From fa965bd3f87fb20cf596087add5ffa161d4da5d3 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 28 Nov 2019 08:55:07 +0530 Subject: [PATCH 2/3] 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 }}

From f359bd61863a0c2912214c765f7dad0663d2a976 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 28 Nov 2019 08:58:16 +0530 Subject: [PATCH 3/3] Remove unused placeholder image --- assets/u/static/images/blog-post-placeholder.png | Bin 374 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 assets/u/static/images/blog-post-placeholder.png diff --git a/assets/u/static/images/blog-post-placeholder.png b/assets/u/static/images/blog-post-placeholder.png deleted file mode 100644 index 2e68e494aa6a38d2f75ac64bd553616463a5689e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 374 zcmeAS@N?(olHy`uVBq!ia0vp^A3&G|NHE+x7wr$ESkfJR9T^xl_H+M9WCijSl0AZa z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenM-^$2tF_6bz z;_2(k{+L^Yn~~w+!#7`nLUo=ljv*Dd-kvpNWMJT7QrLXMehKTh_l-UO_QmvAUQh^kMk%6J5uA!l>kwJ)&ft7)wm4Sh_ mfhCYU$baoTiiX_$l+3hB+!{6n