File tree 2 files changed +20
-19
lines changed
2 files changed +20
-19
lines changed Original file line number Diff line number Diff line change @@ -37,25 +37,7 @@ <h1 class="post-title">
37
37
</ ul >
38
38
{{- end }}
39
39
{{- if (.Param "ShowPostNavLinks") }}
40
- {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
41
- {{- if and (gt (len $pages) 1) (in $pages . ) }}
42
- < nav class ="paginav ">
43
- {{- with $pages.Next . }}
44
- < a class ="prev " href ="{{ .Permalink }} ">
45
- < span class ="title "> « {{ i18n "prev_page" }}</ span >
46
- < br >
47
- < span > {{- .Name -}}</ span >
48
- </ a >
49
- {{- end }}
50
- {{- with $pages.Prev . }}
51
- < a class ="next " href ="{{ .Permalink }} ">
52
- < span class ="title "> {{ i18n "next_page" }} »</ span >
53
- < br >
54
- < span > {{- .Name -}}</ span >
55
- </ a >
56
- {{- end }}
57
- </ nav >
58
- {{- end }}
40
+ {{- partial "post_nav_links.html" . }}
59
41
{{- end }}
60
42
{{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
61
43
{{- partial "share_icons.html" . -}}
Original file line number Diff line number Diff line change
1
+ {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
2
+ {{- if and (gt (len $pages) 1) (in $pages . ) }}
3
+ < nav class ="paginav ">
4
+ {{- with $pages.Next . }}
5
+ < a class ="prev " href ="{{ .Permalink }} ">
6
+ < span class ="title "> « {{ i18n "prev_page" }}</ span >
7
+ < br >
8
+ < span > {{- .Name -}}</ span >
9
+ </ a >
10
+ {{- end }}
11
+ {{- with $pages.Prev . }}
12
+ < a class ="next " href ="{{ .Permalink }} ">
13
+ < span class ="title "> {{ i18n "next_page" }} »</ span >
14
+ < br >
15
+ < span > {{- .Name -}}</ span >
16
+ </ a >
17
+ {{- end }}
18
+ </ nav >
19
+ {{- end }}
You can’t perform that action at this time.
0 commit comments