summaryrefslogtreecommitdiff
path: root/static/html/header.htm
diff options
context:
space:
mode:
authorlost+skunk <[email protected]>2024-08-13 15:59:52 +0300
committerlost+skunk <[email protected]>2024-08-13 15:59:52 +0300
commit1537da9b16dfda1ecb2730b5d1de3b9005397618 (patch)
tree0cce5db0cb6393d369b7f8207d495645510276f2 /static/html/header.htm
parent4db018fb7f01669cb5e4c1da4b56ccfe3dbadd6f (diff)
downloadskunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.tar.gz
skunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.tar.bz2
skunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.zip
темплейты в бинарнике и улучшенная система кеша
Diffstat (limited to 'static/html/header.htm')
-rw-r--r--static/html/header.htm14
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