bbb/index.html
2020-12-25 17:22:30 +00:00

41 lines
1.2 KiB
HTML

---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<h1 class="post-title">
<a href="{{ post.url | absolute_url }}">
{{ post.title }}
</a>
</h1>
<span class="post-date">{{ post.date | date_to_string }}</span>
<span class="post-meta-separator">.</span>
<span class="post-minutes">{% capture content %}{{ post.content }}{% endcapture %}{% include minutes_to_read.html %}</span>
{{ post.excerpt }}
<p><a href="{{ post.url | absolute_url }}">Read more...</a></p>
</div>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.next_page %}
<a class="pagination-item older" href="{{ paginator.next_page_path | absolute_url }}">Older</a>
{% else %}
<span class="pagination-item older">Older</span>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="{{ '/' | absolute_url }}">Newer</a>
{% else %}
<a class="pagination-item newer" href="{{ paginator.previous_page_path | absolute_url }}">Newer</a>
{% endif %}
{% else %}
<span class="pagination-item newer">Newer</span>
{% endif %}
</div>