_layouts/home.html in jekyll-theme-puzzleduck-1.2.0 vs _layouts/home.html in jekyll-theme-puzzleduck-2.1.0
- old
+ new
@@ -17,14 +17,21 @@
{% for post in site.posts %}
<div class="col s12 m6 l4 cards-container">
<a class="post-link" href="{{ post.url | relative_url }}">
<div class="card primary z-depth-5">
<div class="card-title center">
- <h5 class="title">{{ post.title | escape }}</h5>
+ <h5 class="title valign-wrapper">
+ {% if post.title-image %}
+ <img class="hide-on-small-only" height="100px" src="/assets/img/{{ post.title-image }}" />
+ {% else %}
+ <img class="hide-on-small-only" height="100px" src="/assets/img/no_image.svg" />
+ {% endif %}
+ <p align="center">{{ post.title | escape }}</p>
+ </h5>
<hr />
</div>
<div class="post-content center" itemprop="articleBody">
- <i class="material-icons small">account_balance</i> - {{ post.date | date: date_format }}
+ <p>{{ post.excerpt }}</p>
</div>
</div>
</a>
</div>
{% endfor %}