summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2015-03-08 17:22:51 +0000
committerdakkar <dakkar@thenautilus.net>2015-03-08 17:22:51 +0000
commitb2bb9acc0f96feaf9f5708bae33f2680a27bd72c (patch)
tree93476a996f274cb12461d2917543966b81c47d71 /templates
parentimport reviews (diff)
downloadthenautilus-b2bb9acc0f96feaf9f5708bae33f2680a27bd72c.tar.gz
thenautilus-b2bb9acc0f96feaf9f5708bae33f2680a27bd72c.tar.bz2
thenautilus-b2bb9acc0f96feaf9f5708bae33f2680a27bd72c.zip
sort tag lists by creation date
Diffstat (limited to 'templates')
-rw-r--r--templates/document-listing.tt8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/document-listing.tt b/templates/document-listing.tt
index 9cf4775..c42f961 100644
--- a/templates/document-listing.tt
+++ b/templates/document-listing.tt
@@ -1,12 +1,14 @@
[% docs = [];
FOR doc IN tagged.$path;
IF isLang(language,doc);
- docs.push(doc);
+ uri=dstUriFor(doc);
+ dates=datesFor(language,'',uri);
+ docs.push({'uri'=>uri,'creation'=>dates.creation});
END;
END -%]
[% IF docs.size > 0 %]
.. class:: doc-tag-list
-[% FOR doc IN docs %]
-* `<[% dstUriFor(doc) %]>`_
+[% FOR doc IN docs.sortf('creation') %]
+* `<[% doc.uri %]>`_
[% END; END %]