thallada.github.io/blog/index.html

44 lines
1.3 KiB
HTML

---
layout: default
title: Tyler Hallada - Blog
---
{% for post in paginator.posts %}
<div class="card">
<div class="row clearfix post-header">
<div class="column three-fourths">
<a href="{{ post.url }}"><h2 class="post-title">{{ post.title }}</h2></a>
</div>
<div class="column fourth">
<span class="timestamp">{{ post.date | date_to_string }}</span>
</div>
</div>
<div class="row clearfix">
<div class="column full post">
{{ post.excerpt }}
</div>
</div>
<div class="row clearfix more-row">
<div class="column full">
<a href="{{ post.url }}" class="read-more">Read More &raquo;</a>
</div>
</div>
</div>
{% endfor %}
<div class="row clearfix pagination">
<div class="column full">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a href="/blog" class="previous">&laquo; Previous</a>
{% else %}
<a href="/blog/page{{ paginator.previous_page }}" class="previous">&laquo; Previous</a>
{% endif %}
{% endif %}
<span class="page_number ">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="/blog/page{{ paginator.next_page }}" class="next">Next &raquo;</a>
{% endif %}
</div>
</div>