Skip to content

Commit 7882d2c

Browse files
authored
Update list.html to reverse date order
1 parent a7ae379 commit 7882d2c

File tree

1 file changed

+3
-2
lines changed
  • themes/beautifulhugo/layouts/_default

1 file changed

+3
-2
lines changed

themes/beautifulhugo/layouts/_default/list.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
</div>
99
{{ end }}
1010
<div class="posts-list">
11-
{{ range .Paginator.Pages }}
12-
{{ partial "post_preview.html" .}}
11+
{{ range (.Paginator.Pages.ByDate.Reverse) }}
12+
{{ partial "post_preview.html" . }}
1313
{{ end }}
1414
</div>
15+
1516
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
1617
<ul class="pager main-pager">
1718
{{ if .Paginator.HasPrev }}

0 commit comments

Comments
 (0)