diff options
Diffstat (limited to 'static/html/header.htm')
| -rw-r--r-- | static/html/header.htm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/static/html/header.htm b/static/html/header.htm new file mode 100644 index 0000000..f8537a3 --- /dev/null +++ b/static/html/header.htm @@ -0,0 +1,14 @@ +{{define "header"}} +<header> + <h1><a href="">HOME</a> | <a href="dd">DD</a> {{if eq .Endpoint "dd"}}| <a href="{{.Endpoint}}?atom=true">RSS</a>{{end}}</h1> + <form method="get" action="search"> + <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false" value="{{.QueryRaw}}"> + <select name="type"> + <option value="all">All</option> + <option value="tag">Tag</option> + <option value="r">Groups</option> + </select> + <button type="submit">Search!</button> + </form> +</header> +{{end}}
\ No newline at end of file |
