{% assign post = include.post %} <div class="card frontpage-card"> <div class="card-body"> {% if post.title %} <a href="{{ post.url | relative_url }}"> <h3 class="card-title">{{ post.title }}</h3> </a> {% else %} <!-- WARNING: frontpage/post-card.html was include, but no post title is defined. --> {% endif %} {% if post.date %} <div> <i class="fas fa-calendar-day" aria-hidden="true"></i> {{ post.date | date_to_string }} </div> {% endif %} <div> {% for category in post.categories %} <span class="badge badge-pill badge-secondary" aria-hidden="true">{{ category | capitalize }}</span> {% endfor %} </div> </div> </div>