nt_posts = display_posts | slice: 0, slice_length %}
      {% for post in recent_posts %}
      <article class="post post-card">
        <div class="post-inside">
          {% assign thumb_img_path_is_not_empty = post.thumb_img_path | is_not_empty %}
          {% if thumb_img_path_is_not_empty %}
          <a class="post-thumbnail" href="{{ post.url | relative_url }}"><img src="{{ post.thumb_img_path | relative_url }}" alt="{{ post.title }}" /></a>
          {% endif %}
          <header class="post-header"