From 232029ae7bdaa7b9edf824793cffdf5a45c24c0c Mon Sep 17 00:00:00 2001 From: Jordan Lovett Date: Thu, 1 May 2025 14:22:02 +0100 Subject: [PATCH] show search hits at page top --- root/search.tx | 10 ++++++++++ t/controller/search.t | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/root/search.tx b/root/search.tx index adc354bd82..ebdcbe1411 100644 --- a/root/search.tx +++ b/root/search.tx @@ -4,6 +4,16 @@ %% after content_classes -> { ' search-results' } %% override content -> {

Search results for "[% $search_query %]"

+ +%% if $pageset && $pageset.total_entries { +
+ [% $pageset.total_entries | format_number %] + [% pluralize("result", $pageset.total_entries) %] + [% if $took { %] ([% $took / 1000 %] seconds)[% } %] +
+
+%% } + %% if $authors.total {