File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -73,3 +73,5 @@ exclude:
73
73
- Gemfile.lock
74
74
- LICENSE
75
75
- README.md
76
+ paginate : 3
77
+ paginate_path : " page/:num"
Original file line number Diff line number Diff line change 2
2
layout: default
3
3
---
4
4
5
- {% for post in site .posts %}
5
+ {% for post in paginator .posts %}
6
6
< section >
7
7
< article id ="post-{{ post.wordpress_id }} " class ="post-{{ post.wordpress_id }} post type-post status-publish format-standard hentry category-other tag-101 tag-1003 tag-32 ">
8
8
< h1 class ="post-title "> < a href ="{{ post.link }} "> {{ post.title }}</ a > </ h1 >
9
9
{{ post.content | truncatewords:40}}
10
10
</ article >
11
11
</ section >
12
- {% endfor %}
12
+ {% endfor %}
13
+ < section >
14
+ < aside >
15
+ < nav id ="nav-below " class ="navigation " role ="navigation ">
16
+ < div class ="nav-previous ">
17
+ {% if paginator.next_page %}
18
+ < a href ="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }} "> < span class ="meta-nav "> ←</ span > 早期文章</ a >
19
+ {% endif %}
20
+ </ div >
21
+
22
+ < div class ="nav-next ">
23
+ {% if paginator.previous_page %}
24
+ < a href ="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }} "> 较新文章 < span class ="meta-nav "> →</ span > </ a >
25
+ {% endif %}
26
+ </ div >
27
+ </ nav >
28
+ </ aside >
29
+ </ section >
You can’t perform that action at this time.
0 commit comments