-
Notifications
You must be signed in to change notification settings - Fork 258
/
index.html
60 lines (50 loc) · 1.79 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
---
layout: default
---
<div class="home">
{% for post in paginator.posts%}
<div class="post postContent">
<div class="postDate"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%b %-d, %Y" }}</time>
</div>
<div class="postTag">
{{post.tag}}
</div>
<br>
<div class="postTitle">
<a class='postLink' href="{{site.url}}{{site.baseurl}}{{post.url}}">{{post.title}}</a>
</div>
<div class="postExt">
{{ post.content | strip_html | truncate:200}}
</div>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% if paginator.previous_page %}
<a class="paginationLink" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em class="paginationLink paginationLinkCurrent">{{ page }}</em>
{% elsif page == 1 %}
<a class="paginationLink" href="/">{{ page }}</a>
{% else %}
<a class="paginationLink" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a class="paginationLink" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
{% endif %}
</nav>
{% endif %}
<!--<ul class="post-list">
{% for post in site.posts %}
<li>
<span class="post-meta-main">{{ post.date | date: "%b %-d, %Y" }}</span>
<h2>
<a class="post-link-main" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
</li>
{% endfor %}
</ul>-->
</div>