aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/common/entry_pagination.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-07-04 22:05:19 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-07-04 22:05:19 -0700
commit6d0dc451e45effc8cbb6953a766b111036d893ce (patch)
tree3c7be86a036dfc77534fe89abb7d88413e5fdb52 /template/html/common/entry_pagination.html
parentaf15412954b9b36365f3fd723bf91b3c7c2f88bd (diff)
Add search form
Diffstat (limited to 'template/html/common/entry_pagination.html')
-rw-r--r--template/html/common/entry_pagination.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/html/common/entry_pagination.html b/template/html/common/entry_pagination.html
index 6c9f29c..bb2b84f 100644
--- a/template/html/common/entry_pagination.html
+++ b/template/html/common/entry_pagination.html
@@ -2,7 +2,7 @@
<div class="pagination">
<div class="pagination-prev">
{{ if .prevEntry }}
- <a href="{{ .prevEntryRoute }}" title="{{ .prevEntry.Title }}" data-page="previous">{{ t "Previous" }}</a>
+ <a href="{{ .prevEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .prevEntry.Title }}" data-page="previous">{{ t "Previous" }}</a>
{{ else }}
{{ t "Previous" }}
{{ end }}
@@ -10,7 +10,7 @@
<div class="pagination-next">
{{ if .nextEntry }}
- <a href="{{ .nextEntryRoute }}" title="{{ .nextEntry.Title }}" data-page="next">{{ t "Next" }}</a>
+ <a href="{{ .nextEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .nextEntry.Title }}" data-page="next">{{ t "Next" }}</a>
{{ else }}
{{ t "Next" }}
{{ end }}