coryd.dev/src/pages/sections/posts/index.html

37 lines
1.2 KiB
HTML

---
title: All posts
pagination:
data: posts.all
size: 15
permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
---
{% if pagination.pageNumber == 0 %}
<h2 class="page-title">Posts</h2>
<p>These are all of my blog posts on this site (I like some more than others).</p>
<p>I tend to write about whatever strikes me, with a focus on development, technology, automation or issues I run into with these things. This is all typically light on editing with and heavy on spur of the moment thoughts.</p>
{% render "blocks/banners/rss.liquid",
url: "/feeds/posts.xml",
text: "Subscribe to my posts feed or follow along on this page"
%}
<hr />
{% endif %}
{% for post in pagination.items %}
<article>
<aside>
{%- if post.featured -%}{% tablericon "star" %}{%- endif -%}
<time datetime="{{ post.date }}">
{{ post.date | date: "%B %e, %Y" }}
</time>
</aside>
<h3>
<a href="{{ post.url }}">{{ post.title }}</a>
</h3>
{% render "blocks/tags.liquid",
tags:post.tags
%}
<p>{{ post.description | markdown }}</p>
</article>
{% endfor %}
{% render "nav/paginator.liquid",
pagination:pagination
%}