-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
executable file
·46 lines (41 loc) · 1.52 KB
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
layout: default
title: Blog
permalink: /blog/
---
<div class="container">
<div class="row">
<div class="col">
<section>
<h2>Our Blog</h2>
{% for post in site.posts %}
{% assign date_format = site.minima.date_format | default: "%m/%d" %}
<div class="post-item">
<div class="post-title">
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</div>
<div class="post-meta">
Published on {{ post.date | date: date_format }}
</div>
</div>
{% endfor %}
</section>
{% if paginator.total_pages > 1 %}
<ul class="pagination justify-content-center">
{% if paginator.previous_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">←
Newer Posts</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="page-item">
<a class="page-link" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts
→</a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
</div>
</div>