summaryrefslogtreecommitdiff
path: root/static/html/head.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/head.htm
parent4db018fb7f01669cb5e4c1da4b56ccfe3dbadd6f (diff)
downloadskunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.tar.gz
skunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.tar.bz2
skunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.zip
темплейты в бинарнике и улучшенная система кеша
Diffstat (limited to 'static/html/head.htm')
-rw-r--r--static/html/head.htm24
1 files changed, 24 insertions, 0 deletions
diff --git a/static/html/head.htm b/static/html/head.htm
new file mode 100644
index 0000000..f7f6b91
--- /dev/null
+++ b/static/html/head.htm
@@ -0,0 +1,24 @@
+{{define "head"}}
+<head>
+ <title>SkunkyArt |
+ {{if eq .Endpoint "search"}}
+ "{{.QueryRaw}}"
+ {{else if eq .Endpoint "post"}}
+ {{.Templates.Deviation.Post.Deviation.Author.Username}} — {{.Templates.Deviation.Post.Deviation.Title}}
+ {{else if eq .Type 'a'}}
+ {{if .Templates.GroupUser.GR.Owner.Username}}
+ {{.Templates.GroupUser.GR.Owner.Username}}
+ {{else}}
+ gallery of {{.Templates.GroupUser.GR.Owner.Username}}
+ {{end}}
+ {{else}}
+ {{.Endpoint}}
+ {{end}}
+ </title>
+
+ <base href="{{.BasePath}}">
+ <meta name="referrer" content="no-referrer" />
+ <link rel="stylesheet" href="{{.BasePath}}stylesheet">
+ <link rel="icon" type="image/x-icon" href="{{.BasePath}}favicon.ico">
+</head>
+{{end}} \ No newline at end of file