-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
64 lines (55 loc) · 2.74 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
layout: default
---
<div class="container">
<div class="group-article">
<div class="row no-margin">
<div class="col s12">
<h2 class="blue-text center-align thin">Recent Post</h2>
<div class="divider"></div>
</div>
</div>
{% for post in paginator.posts %}
<div class="row no-margin">
<a class="waves-effect" href="{{ post.url | prepend: site.baseurl }}.html">
<div class="col s12">
<div class="list-article">
<h4 class="blue-text thin">{{ post.title }}</h4>
<p class="grey-text text-darken-1 light">Published at {{ post.date | date: "%B %-d, %Y" }}.</p>
<article class="grey-text text-darken-2 post-content on-index light">
{{ post.excerpt | strip_html }}. .
</article>
<br/>
</div>
<div class="divider dashed"></div>
</div>
</a>
</div>
{% endfor %}
</div>
<div class="section">
{% if paginator.total_pages > 1 %}
<ul class="pagination center-align">
{% if paginator.previous_page %}
<li class="waves-effect"><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="material-icons">chevron_left</i></a></li>
{% else %}
<li class="waves-effect disabled"><a href="#"><i class="material-icons">chevron_left</i></a></li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="waves-effect active"><a href="#">{{ page }}</a></li>
{% elsif page == 1 %}
<li class="waves-effect"><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a></li>
{% else %}
<li class="waves-effect"><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<li class="waves-effect"><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="material-icons">chevron_right</i></a></li>
{% else %}
<li class="waves-effect disabled"><a href="#"><i class="material-icons">chevron_right</i></a></li>
{% endif %}
</ul>
{% endif %}
</div>
</div>