mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-28 12:05:06 +03:00
темплейты в бинарнике и улучшенная система кеша
This commit is contained in:
parent
4db018fb7f
commit
1537da9b16
29 changed files with 555 additions and 303 deletions
24
static/html/head.htm
Normal file
24
static/html/head.htm
Normal file
|
@ -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}}
|
Loading…
Add table
Add a link
Reference in a new issue