Skip to content

Commit

Permalink
Update banner image in post list
Browse files Browse the repository at this point in the history
  • Loading branch information
naanadr committed May 17, 2020
1 parent 7625148 commit 9767af6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
{% for post in paginator.posts %}
<div class="item mb-5">
<div class="media">
{% if post.preview %}
{% if post.preview != "" %}
<img class="mr-3 img-fluid post-thumb d-none d-md-flex" src="{{site.url}}{{site.baseurl}}{{post.image}}" alt="image">
{% elsif post.tags contains "palestra" %}
<img class="mr-3 img-fluid post-thumb d-none d-md-flex" src="{{site.url}}{{site.baseurl}}/assets/images/blog/template-palestra.png" alt="{{post.title}}">
{% elsif post.tags contains "tutorial" %}
<img class="mr-3 img-fluid post-thumb d-none d-md-flex" src="{{site.url}}{{site.baseurl}}/assets/images/blog/template-tutorial.png" alt="{{post.title}}">
{% else %}
<img class="mr-3 img-fluid post-thumb d-none d-md-flex" src="{{site.url}}{{site.baseurl}}/assets/images/blog/template-blog-post.png" alt="image">
<img class="mr-3 img-fluid post-thumb d-none d-md-flex" src="{{site.url}}{{site.baseurl}}/assets/images/blog/template-blog-post.png" alt="{{post.title}}">
{% endif %}
<div class="media-body">
<h3 class="title mb-1"><a href="{{ post.url | prepend: site.url }}">{{ post.title }}</a></h3>
Expand Down

0 comments on commit 9767af6

Please sign in to comment.