blob: 54c1cca8a7b74f933c2280d1959d4ff49b0d875d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
include ../mixins/post
include ../mixins/header
include ../mixins/head
doctype html
html
+head("search posts")
include ../mixins/subUtils
body
main#content
+header(user)
div.hero
h1 search posts
form(action="/post-search" method="get").search-bar
- var prefill = original_query ?? "";
input(type="text" name="q" placeholder="type in a search term..." value=prefill required).search-input
button(type="submit").search-button go
if message
div.search-message
i #{message}
if items
each item in items
+post(item.data)
|