From cbaad2783ab19166b076c1b7c282904a7bf11886 Mon Sep 17 00:00:00 2001 From: weru Date: Tue, 14 Dec 2021 18:24:01 +0300 Subject: [PATCH] exclude search page from pager Signed-off-by: weru --- layouts/partials/pager.html | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/layouts/partials/pager.html b/layouts/partials/pager.html index af32e4ca..cea8aa51 100644 --- a/layouts/partials/pager.html +++ b/layouts/partials/pager.html @@ -1,20 +1,23 @@
+ {{- $searchURL := "/search/" }} {{ with .Site.RegularPages.Next . }} - + {{ if ne .RelPermalink $searchURL }} + + {{ end }} {{ end }} {{ with .Site.RegularPages.Prev . }} - + {{ if ne .RelPermalink $searchURL }} + + {{ end }} {{ end }}
{{ partialCached "sprites" . }} \ No newline at end of file