From 85473656174b1b1d6221d3bb76cc12fa5f7f7e8d Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Fri, 1 Jan 2021 14:46:54 +0100 Subject: Initial commit --- templates/search.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 templates/search.html (limited to 'templates/search.html') diff --git a/templates/search.html b/templates/search.html new file mode 100644 index 0000000..9a6dbf7 --- /dev/null +++ b/templates/search.html @@ -0,0 +1,21 @@ +{{define "main"}} +
+ + + +
+ +{{if .Q}} +{{if gt .Total 0}} +

Results ({{.Total}} total)

+ {{template "article_list" .Results}} + + {{if gt .Pages 1}} +

{{pagination .Pages .Page "/blog/search" "q" .Q}}

+ {{end}} +{{else}} +

Nothing found

+{{end}} +{{end}} + +{{end}} -- cgit v1.2.3-54-g00ecf