41 lines
1.4 KiB
HTML
Raw Normal View History

2021-01-13 18:58:23 -05:00
---
layout: post
---
{% comment %}
This layout is the posts index (a collection of all blog posts).
{% endcomment %}
<!-- Main Body Content -->
<div class="content">
<!-- This loops through the paginated posts collection posts-->
{% for post in paginator.posts %}
<!-- Post layout structure -->
<article class="post">
<header>
<a href="{{ post.url | absolute_url }}" class="hero image fit"><img src="{{ post.banner_image }}" alt="{{ post.title }}" /></a>
<div class="title">
<h2><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2>
<p>{{ post.sub_heading }}</p>
</div>
{% assign author = site.data.authors[post.author] %}
{%- include author_card.html -%}
</header>
<p>{{ post.content | strip_html | truncatewords: 50 }}</p>
<footer>
<ul class="actions">
2022-06-24 00:49:34 -04:00
<li><a href="{{ post.url | absolute_url }}" class="button"><b>Continue Reading</b></a></li>
2021-01-13 18:58:23 -05:00
</ul>
<ul class="stats">
2022-06-24 00:49:34 -04:00
<li><b>{{ post.category }}</b></li>
2022-07-26 21:59:19 -04:00
<li><b>Tags: </b>{{ post.tags }}</li>
2021-01-13 18:58:23 -05:00
<!-- <li class="icon solid fa-heart">144</li> -->
<li><a href="{{ post.url | absolute_url }}" class="icon solid fa-comment">88</a></li>
</ul>
</footer>
</article>
{% endfor %}
2022-07-26 21:59:19 -04:00
<!-- Pagination to navigate to another collection of posts -->
{% include pagination.html %}
2021-01-13 18:58:23 -05:00
</div>