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
44
static/html/deviantion.htm
Normal file
44
static/html/deviantion.htm
Normal file
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{template "head" . }}
|
||||
<main>
|
||||
{{template "header" . }}
|
||||
<figure>
|
||||
<img src="{{.BasePath}}media/emojitar/{{.Templates.Deviation.Post.Deviation.Author.Username}}?type=a" width="30px">
|
||||
<span><strong><a href="{{.BasePath}}group_user?type=about&q={{.Templates.Deviation.Post.Deviation.Author.Username}}">{{.Templates.Deviation.Post.Deviation.Author.Username}}</a></strong> — {{if (.Templates.Deviation.Post.Deviation.DD)}}
|
||||
<span class="dd" title="Daily Deviation!"><b>{{.Templates.Deviation.Post.Deviation.Title}}</b></span>
|
||||
{{else}}{{.Templates.Deviation.Post.Deviation.Title}}{{end}}
|
||||
{{if (ne .Templates.Deviation.Post.Deviation.License "none")}}<mark title="License">{{.Templates.Deviation.Post.Deviation.License}}</mark>{{end}} {{if (.Templates.Deviation.Post.Deviation.AI)}}[🤖]{{end}}
|
||||
{{if (.Templates.Deviation.Post.Deviation.NSFW)}}[<span class="nsfw">NSFW</span>]{{end}}
|
||||
</span>
|
||||
<br>
|
||||
{{if (ne .Templates.Deviation.Post.IMG "")}}
|
||||
<a href="{{.Templates.Deviation.Post.IMG}}" title="open/download image"><img src="{{.Templates.Deviation.Post.IMG}}" width="50%"></a>
|
||||
<br>
|
||||
{{end}}
|
||||
{{if (ne .Templates.Deviation.Tags "")}}
|
||||
{{.Templates.Deviation.Tags}}<br>
|
||||
{{end}}
|
||||
<span>Published: <strong>{{.Templates.Deviation.StringTime}}</strong>; Views: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Views}}</strong>; Favourites: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Favourites}}</strong>; Downloads: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Downloads}}</strong>
|
||||
<br><a target="_blank" href="https://www.deviantart.com/{{.Templates.Deviation.Post.Deviation.Author.Username}}/art/art-{{.Templates.Deviation.Post.Deviation.ID}}">Redirect to original</a>
|
||||
</span>
|
||||
{{if (ne .Templates.Deviation.Post.Description "")}}
|
||||
<figcaption>
|
||||
<details>
|
||||
<summary>Description</summary>
|
||||
{{.Templates.Deviation.Post.Description}}
|
||||
</details>
|
||||
</figcaption>
|
||||
{{end}}
|
||||
{{if ne .Templates.Deviation.Related ""}}
|
||||
<details>
|
||||
<summary>Related content</summary>
|
||||
{{.Templates.Deviation.Related}}
|
||||
</details>
|
||||
{{end}}
|
||||
{{if (ne .Templates.Deviation.Comments "")}}
|
||||
{{.Templates.Deviation.Comments}}
|
||||
{{end}}
|
||||
</figure>
|
||||
</main>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue