_includes/section/recent_posts.html in blogging-site-theme-0.1.6 vs _includes/section/recent_posts.html in blogging-site-theme-0.1.7
- old
+ new
@@ -4,11 +4,10 @@
<h1 class="related_post_heading">Recent Posts</h1>
{%- endif -%}
<div class="row">
{% assign posts = site.posts | where_exp:"post","post.url != page.url" %}
{% for post in posts limit: 3%}
-
<div class="col-lg-4 col-md-6 mb-4 card-group">
<div class="card h-100">
<a href="{{ post.url }}">
<img src="{{ post.image }}" class="card-img-top" height="215px" width="100%" loading="lazy"
alt="">
@@ -19,10 +18,9 @@
</a>
</div>
<div class="card-footer bg-white">
<div class="wrapfooter">
{% assign author = site.data.blog.authors[post.author] %}
-
{% if post.author %}
<span class="meta-footer-thumb">
<img class="author-thumb" loading="lazy" src="{{author.image}}" alt="{{ authorName }}">
</span>
{% endif %}
\ No newline at end of file