mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
sort monthly post archives descending
This commit is contained in:
parent
24f60083a2
commit
043e363300
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@
|
|||
<% posts.sort(function(a, b) { -%>
|
||||
<% var t1 = a.timestamp -%>
|
||||
<% var t2 = b.timestamp -%>
|
||||
<% return t1 < t2 ? -1 : (t1 > t2 ? 1 : 0) -%>
|
||||
<% return t1 < t2 ? 1 : (t1 > t2 ? -1 : 0) -%>
|
||||
<% }) -%>
|
||||
<% return posts -%>
|
||||
<% } -%>
|
||||
|
|
|
|||
Loading…
Reference in a new issue