-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (53 loc) · 2.62 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
---
layout: default
---
<div class="main-content index-page clearfix">
<div class="post-lists">
<div class="post-lists-body">
{% for post in paginator.posts %}
<div class="post-list-item">
<div class="post-list-item-container">
<div class="item-thumb bg-deepgrey" style="background-image:url({% if post.thumbnail %}{{ post.thumbnail }}{% else %}{{ '/style/image/thumbnail.png' | prepend: site.baseurl }}{% endif %});"></div>
<a href="{{ post.url | prepend: site.baseurl }}">
<div class="item-desc">
<p>{{ post.content | strip_html | strip_newlines | truncate: 128 }} </p>
</div>
</a>
<div class="item-slant reverse-slant bg-deepgrey"></div>
<div class="item-slant"></div>
<div class="item-label">
<div class="item-title"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
<br />
{{ post.date | date: "%b %d, %Y" }}
</div>
<div class="item-meta clearfix">
<div class="item-meta-ico {% if post.icon %}bg-ico-{{ post.icon }}{% endif %}" style="background: url({{ '/style/image/bg-ico.png' | prepend: site.baseurl }}) no-repeat;background-size: 40px auto;"></div>
<div class="item-meta-cat">
<a href="javascript:void(0);">{{ post.category }}</a>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% if paginator.total_pages > 1 %}
<div class="lists-navigator clearfix">
<ol class="page-navigator">
{% if paginator.previous_page %}
<li class="prev"><a href="{{ paginator.previous_page_path | relative_url }}">←</a></li>
{% endif %}
{% for page in (1..paginator.total_pages) %}
<li {% if page==paginator.page %} class="current" {% endif %}>
<a href="{% if page == 1 %}{{ '/' | prepend: site.baseurl }}{% else %}{{ site.paginate_path | relative_url | replace: ':num', page }}{% endif %}">{{
page }}</a>
</li>
{% endfor %}
{% if paginator.next_page %}
<li class="next"><a href="{{ paginator.next_page_path | relative_url }}">→</a></li>
{% endif %}
</ol>
</div>
{% endif %}
</div>