aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_layouts/pastebins-listing.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/_layouts/pastebins-listing.html b/_layouts/pastebins-listing.html
index e829e5e..4c37c93 100644
--- a/_layouts/pastebins-listing.html
+++ b/_layouts/pastebins-listing.html
@@ -3,7 +3,8 @@ layout: default
---
<h1>Pastebins listing</h1>
<ul>
- {%- for pastebin in site.pastebins -%}
+ {% assign pastebins = site.pastebins | sort: "date" | reverse %}
+ {%- for pastebin in pastebins -%}
<li>
<a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: site.t.date_format[page.lang] }}
</li>