-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (82 loc) · 2.53 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
layout: default
---
<section>
{% for post in paginator.posts %}
<div class="section">
<div class="post-title center">
<h4>
{% if post.language %}
{% for icon in site.data.devicon %}
{% if icon.name == post.language %}
{% assign versions = icon.versions %}
<i class="devicon-{{ icon.name }}-{{ versions.font[0] }} colored icon-title"></i>
{{ break }}
{% endif %}
{% endfor %}
{% else %}
<i class="fa fa-pencil icon-title text-warning"></i>
{% endif %}
<small>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</small>
</h4>
</div>
<div class="post-metadata">
<small>
<span class="fa fa-calendar-o text-primary"></span>
{{ post.date | date: "%Y, %b %-d" }}
{% if post.author %}<br/>
<i class="fa fa-user text-primary"></i>
<span itemprop="name">{{ post.author }}</span>
{% endif %}
</small>
</div>
<div class="post-content">
{% if post.content contains '<!--more-->' %}
{{ post.content | split:'<!--more-->' | first }}
<p><a href="{{ site.baseurl }}{{ post.url }}">Lanjut membaca ...</a></p>
{% else %}
{{ post.content }}
{% endif %}
</div>
</div>
<div class="divider"></div>
{% endfor %}
</section>
<section>
<!-- start pagination control -->
<div>
<ul class="pagination">
{% if paginator.total_pages > 1 %}
<li>
<a>Halaman:</a>
</li>
{% if paginator.previous_page %}
<li>
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">
<i class="material-icons">chevron_left</i>
</a>
</li>
{% else %}
<li class="disabled">
<a><i class="material-icons">chevron_left</i></a>
</li>
{% endif %}
<li><a>{{ paginator.page }} dari {{ paginator.total_pages }}</a></li>
{% if paginator.next_page %}
<li>
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">
<i class="material-icons">chevron_right</i>
</a>
</li>
{% else %}
<li class="disabled">
<a><i class="material-icons">chevron_right</i></a>
</li>
{% endif %}
{% endif %}
</ul>
</div>
<!-- end pagination control -->
</section>