-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (36 loc) · 1.42 KB
/
Copy pathindex.html
File metadata and controls
38 lines (36 loc) · 1.42 KB
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
---
layout: default
---
{% for post in paginator.posts %}
<article class="content-box post">
<header>
<h1><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
<p><span class="post-meta">[AUTHOR: <span class="author">{{ post.author }}</span>] [DATE: <time class="time"
pubdate datetime="{{ post.date | date: " %Y-%m-%d" }}">{{ post.date | date: "%Y-%m-%d"
}}</time>]</span></p>
</header>
<p>{{ post.excerpt }}</p>
<p><a href="{{ post.url | prepend: site.baseurl }}" class="btn-read-more">阅读全文 »</a></p>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav>
<ul class="pager">
{% if paginator.previous_page %}
<li class="pager-prev">
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"
aria-label="Previous">
<span aria-hidden="true">« Newer</span>
</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="pager-next">
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" aria-label="Next">
<span aria-hidden="true">Older »</span>
</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}