bbb/index.html
2021-11-28 14:11:13 +05:30

38 lines
1.1 KiB
HTML

---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
<a class="paginated-post" href="{{ post.url | absolute_url }}">
<div>
<h2>
{{ post.title }}
</h2>
<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 }}
</div>
</a>
{% 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>