summaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2013-10-28 12:40:36 -0600
committerDrew DeVault <sir@cmpwn.com>2013-10-28 12:40:36 -0600
commit8ad888e1fdafb4aefeac07232a865da4969343bb (patch)
tree7291a2c2264cf7bb226b798ba188457e9779afb8 /index.html
parent96bc836e858500064dd1904760ff866495e19efa (diff)
Remove thumbnail from posts without a thumbnail
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/index.html b/index.html
index 723e37e..c133f34 100644
--- a/index.html
+++ b/index.html
@@ -14,13 +14,11 @@ something interesting to say, so expect infrequent articles.</p>
<div class="media">
{% for post in site.posts %}
+ {% if post.thumbnail != nil %}
<a href="{{ post.url }}" class="pull-left">
- {% if post.thumbnail == nil %}
- <img class="media-object" src="http://placehold.it/64x64" />
- {% else %}
<img class="media-object" src="{{ post.thumbnail }}" />
- {% endif %}
</a>
+ {% endif %}
<div class="media-body">
<a href="{{ post.url }}"><h4 class="media-heading">{{ post.title }}</h4></a>
<small>{{ post.date | date_to_string }}</small>