-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (37 loc) · 1.34 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
---
layout: default
---
<section class="main-content">
{% if site.singlepage %}
{% assign post = site.posts.first %}
{% assign content = post.content %}
<article class="module color-3">
{{ content }}
</article>
{% else %}
{% for post in paginator.posts %}
<article class='module color-3'>
<header>
<span class='categories'>{{ post.categories | array_to_sentence_string }}</span>
<h2>
<a href='{{ fullUrl }}{{ post.url }}' title='{{ post.title }}'>
{{ post.title }}
</a>
</h2>
</header>
<p>{{ post.excerpt | strip_html | truncate: 250 }}</p>
</article>
{% endfor %}
<div class='module pagination color-3'>
{% if paginator.previous_page %}
<a href='{{ site.url }}{{ paginator.previous_page_path }}' class='previous'>Previous</a>
{% endif %}
<span class='page_number'>
— {{ paginator.page }} of {{ paginator.total_pages }} —
</span>
{% if paginator.next_page %}
<a href='{{ site.url }}{{ paginator.next_page_path }}' class='next'>Next</a>
{% endif %}
</div>
{% endif %}
</section>