Skip to content

Commit

Permalink
add 'asc' parameter to GroupByDate function call
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTimeWalker committed Aug 31, 2022
1 parent 6d98771 commit 295ad6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/blog/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="row">
<div class="col-12">
{{- if .Pages -}}
{{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006")}}
{{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006" "asc" )}}
{{ range $pag.PageGroups }}
<h2>{{ T "post_posts_in" }} {{ .Key }}</h2>
<ul class="list-unstyled mt-4">
Expand Down

0 comments on commit 295ad6e

Please sign in to comment.