diff options
Diffstat (limited to 'src/views/post-search.pug')
-rw-r--r-- | src/views/post-search.pug | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/views/post-search.pug b/src/views/post-search.pug new file mode 100644 index 0000000..441d939 --- /dev/null +++ b/src/views/post-search.pug | |||
@@ -0,0 +1,23 @@ | |||
1 | include ../mixins/post | ||
2 | include ../mixins/header | ||
3 | include ../mixins/head | ||
4 | |||
5 | doctype html | ||
6 | html | ||
7 | +head("search posts") | ||
8 | include ../mixins/subUtils | ||
9 | body | ||
10 | main#content | ||
11 | +header(user) | ||
12 | div.hero | ||
13 | h1 search posts | ||
14 | form(action="/post-search" method="get").search-bar | ||
15 | - var prefill = original_query ?? ""; | ||
16 | input(type="text" name="q" placeholder="search posts" value=prefill required).search-input | ||
17 | button(type="submit").search-button go | ||
18 | if message | ||
19 | div.search-message | ||
20 | i #{message} | ||
21 | if items | ||
22 | each item in items | ||
23 | +post(item.data) | ||