From 87670eb07d1b0e82e0a8b4c1f9b9d20e3cafdb42 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 10 Feb 2016 22:02:11 +0100 Subject: add date sorting --- data/templates/search/sidebar.htm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'data') diff --git a/data/templates/search/sidebar.htm b/data/templates/search/sidebar.htm index 9e36312..a48b6e8 100644 --- a/data/templates/search/sidebar.htm +++ b/data/templates/search/sidebar.htm @@ -1,3 +1,12 @@ +{% if hitcount > 1 %} + Sort by: +
+ Relevance + Date +
+
+
+{% endif %} {% set filters %} {% include 'search/sidebar-filter.htm' with {'type': 'tags', 'title': 'Tag'} %} {% include 'search/sidebar-filter.htm' with {'type': 'domain', 'title': 'Domain'} %} -- cgit v1.2.3