-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (35 loc) · 940 Bytes
/
index.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
---
layout: default
title: "Blog"
description: |
This blog is a demo based on the '256 Bloghacks' book by Yegor Bugayenko.
keywords:
- demo blog
- demo keyword 1
- demo keyword 3
---
{% for post in paginator.posts %}
<article>
{{ post.date | date: "%B %-d, %Y" }}
<h1>{{ post.title }}</h1>
{{ post.excerpt }}
<a href="{{ post.url | prepend: site.baseurl }}">Read...</a>
</article>
{% endfor %}
<article class="center">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/"><<</a>
{% else %}
<a href="/p/{{ paginator.previous_page }}"><<</a>
{% endif %}
{% else %}
<span class="mute"><<</span>
{% endif %}
page {{ paginator.page }} of {{ paginator.total_pages }}
{% if paginator.next_page %}
<a href="/p/{{ paginator.next_page }}">>></a>
{% else %}
<span class="mute">>></span>
{% endif %}
</article>