Skip to content

Commit e9657fb

Browse files
liaosy21liaosy
and
liaosy
authored
chore: sort the blog list in descending order by the date field (#1)
Co-authored-by: liaosy <[email protected]>
1 parent 37e9024 commit e9657fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/hugoplate/layouts/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="lg:col-8">
1212
<div class="row">
1313
{{ $pages := where site.RegularPages "Type" "posts" }}
14-
{{ $paginator := .Paginate $pages.ByTitle 4 }}
14+
{{ $paginator := .Paginate $pages.ByDate.Reverse 8 }}
1515
{{ range $paginator.Pages }}
1616
<div class="md:col-6 mb-14">
1717
{{ partial "components/blog-card" . }}

0 commit comments

Comments
 (0)