Sort items decending in month groups
This commit is contained in:
parent
6bff4acf8a
commit
4d2266f4d0
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
<h3 class="mt-5">
|
<h3 class="mt-5">
|
||||||
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ dateFormat "2006-01" $month }}</time>
|
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ dateFormat "2006-01" $month }}</time>
|
||||||
</h3>
|
</h3>
|
||||||
{{ range .Pages.ByDate }}
|
{{ range (sort .Pages "Date" "desc") }}
|
||||||
{{ partial "list_item.html" . }}
|
{{ partial "list_item.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue