From e055d147c3ac04ab7459cd19a15143ad7069bc4f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 11 Nov 2013 18:04:05 +0100 Subject: Sort feeds by title with Jinja sort() function. --- pyaggr3g470r/templates/unread.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r/templates/unread.html') diff --git a/pyaggr3g470r/templates/unread.html b/pyaggr3g470r/templates/unread.html index 40dda336..896b1372 100644 --- a/pyaggr3g470r/templates/unread.html +++ b/pyaggr3g470r/templates/unread.html @@ -4,7 +4,7 @@ {% if feeds|count == 0 %}

No unread articles.

{% else %} - {% for feed in feeds %} + {% for feed in feeds|sort(attribute="title") %}

{{ feed.title }}

-- cgit