36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
---
|
|
layout: default
|
|
regenerate: true
|
|
---
|
|
|
|
<ul class="posts">
|
|
{%- assign posts = paginator.posts | where: 'draft', false -%}
|
|
{% for post in posts %}
|
|
<li><a href="{{ post.url }}" title="{{ post.title | escape }}">{{ post.title }}</a><span class="dates">{{ post.date | date: "%e %B %Y" }}</span></li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<ul class="pager">
|
|
{% if paginator.total_pages > 1 %}
|
|
{% if paginator.previous_page %}
|
|
<li>
|
|
<i class="fas fa-backward"></i><a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if paginator.page_trail %}
|
|
{% for trail in paginator.page_trail %}
|
|
<li {% if page.url == trail.path %}class="selected"{% endif %}>
|
|
<a href="{% if page.url == trail.path %}#{% else %}{{ trail.path | prepend: site.baseurl }}{% endif %}" title="{{ trail.title }}">{{ trail.num }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if paginator.next_page %}
|
|
<li>
|
|
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a><i class="fas fa-forward right"></i>
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
</ul>
|