1
Fork 0

Sort items decending in month groups

This commit is contained in:
Jake Howard 2017-12-31 15:53:19 +00:00
parent 6bff4acf8a
commit 4d2266f4d0
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -8,7 +8,7 @@
<h3 class="mt-5">
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ dateFormat "2006-01" $month }}</time>
</h3>
{{ range .Pages.ByDate }}
{{ range (sort .Pages "Date" "desc") }}
{{ partial "list_item.html" . }}
{{ end }}
{{ end }}