File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 13
13
< % } %>
14
14
15
15
<section class =" post-list" >
16
- <% page .posts .each (function (post ){ % >
17
- < % if (post .top == true ) { % >
16
+ <% if (page .prev == 0 ) { % >
17
+ < % site .posts .each (function (post ){ % >
18
+ < % if (post .top ) { % >
18
19
< div class = ' post-wrapper' >
19
- < %- partial (' post' , {post: post}) % >
20
+ < %- partial (' post' , {post: post}) % >
20
21
< / div>
21
22
< % } % >
22
- < % }) %>
23
+ < % }) % >
24
+ < % } %>
23
25
<% page .posts .each (function (post ){ % >
24
- < % if (! post .top || post . top != true ) { % >
26
+ < % if (! post .top ) { % >
25
27
< div class = ' post-wrapper' >
26
- < %- partial (' post' , {post: post}) % >
28
+ < %- partial (' post' , {post: post}) % >
27
29
< / div>
28
30
< % } % >
29
31
< % }) %>
Original file line number Diff line number Diff line change 53
53
< % } % >
54
54
< % } %>
55
55
56
- <% if (isPostList && post .top == true && (! post .meta || post .meta .top != false )){ % >
56
+ <% if (isPostList && post .top && (! post .meta || post .meta .top != false )){ % >
57
57
< div class = " metatag top" >
58
- < i class = " fas fa-angle-double-up fa-fw" aria- hidden= " true" >< / i> & nbsp;< %- __ (' post.top' ) % >
58
+ < i class = " fas fa-angle-double-up fa-fw" aria- hidden= " true" >< / i> & nbsp;< %- post . top != true ? post . top : __ (' post.top' ) % >
59
59
< / div>
60
60
< % } %>
61
61
You can’t perform that action at this time.
0 commit comments