-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (56 loc) · 1.75 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
---
layout: default
title: Icreated Blog
shortName: blog
---
<h1 class="subject">{{ page.title}}</h1>
{% for post in paginator.posts %}
<h2 class="post-title">
<a href="{{site.url | append: post.url }}">
{{ post.title }}
</a>
</h3>
<div class="post-meta">
<div class="post-time">
<i class="fa fa-calendar"></i>
<time>{{ post.date | date_to_string }}</time>
<div>by {{ post.author | default: site.author }}</div>
</div>
<div class="post-tag">
<ul>
{% for tag in post.tags %}
{% assign tagLink = '/tag/' | append: tag | append: '.html' %}
<li><a href="{{ tagLink | relative_url }}"><span class="tag tag-{{ tag }}">#{{ tag }}</a></span></li>
{% endfor %}
</ul>
</div>
</div>
<div class="post-desc">
<p>
{{ post.description }}
</p>
</div>
{% endfor %}
<div class="post-footer">
<div class="column-full">
{% if paginator.total_pages > 1 %}
<div class="pagination dark">
{% if paginator.previous_page %}
<a class="page" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"><</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<a class="page active">{{ page }}</a>
{% elsif page == 1 %}
<a class="page" href="{{ site.url }}">{{ page }}</a>
{% else %}
<a class="page" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a class="page" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">></a>
{% endif %}
</div>
{% endif %}
</div>
</div>