_layouts/home.html in jekyll-theme-isotc211-0.2.2 vs _layouts/home.html in jekyll-theme-isotc211-0.2.3
- old
+ new
@@ -11,10 +11,20 @@
<section class="news">
<h2 class="section-title">News</h2>
<div class="items">
{% for post in site.posts %}
- <article class="news-item-card">
+
+ <article class="
+ news-item-card
+ {% if post.illustration %}news-item--with-illustration{% endif %}">
+
+ {% if post.illustration %}
+ <div class="illustration-container">
+ <img src="{{ post.illustration | relative_url }}">
+ </div>
+ {% endif %}
+
<h3 class="title"><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h3>
<div class="excerpt">{{ post.excerpt }}</div>
</article>
{% endfor %}
</div>