[reproducible-website] 02/03: Sort RSS feeds.

Chris Lamb chris at chris-lamb.co.uk
Sun Apr 22 12:33:14 CEST 2018


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository reproducible-website.

commit 5b10e031efdd704908181560ec44f8b00c89375d
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Apr 22 12:31:10 2018 +0200

    Sort RSS feeds.
---
 blog/index.rss | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blog/index.rss b/blog/index.rss
index 67b8268..d5b785f 100644
--- a/blog/index.rss
+++ b/blog/index.rss
@@ -12,7 +12,8 @@ layout: none
     <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
     <generator>Jekyll v{{ jekyll.version }}</generator>
 
-    {% for page in site.blog limit:10 %}
+    {% assign sorted = site.blog | sort: 'date' | reverse %}
+    {% for page in sorted limit:10 %}
       <item>
         <title>Reproducible Builds: Weekly report #{{ page.week }}</title>
         <pubDate>{{ page.date | date_to_rfc822 }}</pubDate>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reproducible-website.git


More information about the rb-commits mailing list