forked from WiseTV/wisetv.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (39 loc) · 1.16 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
---
layout: default
title: 专注于移动互联网时代的电视技术
description: 大数据、移动开发、搜索引擎等相关文章
---
{% for post in paginator.posts %}
<article class="post">
<header>
<time datetime="{{ post.date | date: "%Y-%m-%d" }}" class="post__time">
<small>{{ post.date | date_to_string }}</small>
</time>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
</header>
{{ post.excerpt }}
</article>
{% endfor %}
<ul class="pagination text-center">
<li class="pagination__prev">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="btn">Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}" class="btn">Previous</a>
{% endif %}
{% else %}
<span class="btn btn--disabled">Previous</span>
{% endif %}
</li>
<li class="pagination__status">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</li>
<li class="pagination__next">
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}" class="btn">Next</a>
{% else %}
<span class="btn btn--disabled">Next</span>
{% endif %}
</li>
</ul>