summaryrefslogtreecommitdiff
path: root/html/deviantion.htm
diff options
context:
space:
mode:
authorlost+skunk <[email protected]>2024-07-06 00:46:25 +0300
committerlost+skunk <[email protected]>2024-07-06 00:46:25 +0300
commit7f1ab1b73d1e7a0d8a730354bbc3136c5584fea3 (patch)
treecd44fa1c741570f05d2031288afa7b0d6b858a7a /html/deviantion.htm
parent8b839f94063704782872cc11251975cfeae4584c (diff)
downloadskunky-art-7f1ab1b73d1e7a0d8a730354bbc3136c5584fea3.tar.gz
skunky-art-7f1ab1b73d1e7a0d8a730354bbc3136c5584fea3.tar.bz2
skunky-art-7f1ab1b73d1e7a0d8a730354bbc3136c5584fea3.zip
Реализация конфига
Diffstat (limited to 'html/deviantion.htm')
-rw-r--r--html/deviantion.htm38
1 files changed, 19 insertions, 19 deletions
diff --git a/html/deviantion.htm b/html/deviantion.htm
index 6308c91..7a7f282 100644
--- a/html/deviantion.htm
+++ b/html/deviantion.htm
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html>
<head>
- <title>SkunkyArt | {{.Post.Deviation.Author.Username}} - {{.Post.Deviation.Title}}</title>
- <link rel="stylesheet" href="/gui/css/skunky.css">
+ <title>SkunkyArt | {{.Templates.Deviation.Post.Deviation.Author.Username}} - {{.Templates.Deviation.Post.Deviation.Title}}</title>
+ <link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
</head>
<main>
<header>
- <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1>
- <form method="get" action="/search">
+ <h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a></h1>
+ <form method="get" action="{{.BasePath}}search">
<input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
<select name="type">
<option value="all">All</option>
@@ -17,29 +17,29 @@
</form>
</header>
<figure>
- <img src="/media/{{.Post.Deviation.Author.Username}}?type=a" width="30px">
- <span><strong><a href="/group_user?type=about&q={{.Post.Deviation.Author.Username}}">{{.Post.Deviation.Author.Username}}</a></strong> — {{if (.Post.Deviation.DD)}}
- <span class="dd" title="Daily Deviation!"><b>{{.Post.Deviation.Title}}</b></span>
- {{else}}{{.Post.Deviation.Title}}{{end}}
- {{if (ne .Post.Deviation.License "none")}}<mark title="License">{{.Post.Deviation.License}}</mark>{{end}} {{if (.Post.Deviation.AI)}}[🤖]{{end}}
- {{if (.Post.Deviation.NSFW)}}[<span class="nsfw">NSFW</span>]{{end}}
+ <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 .Post.IMG "")}}
- <a href="{{.Post.IMG}}" title="open/download image"><img src="{{.Post.IMG}}" width="50%"></a>
+ {{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 .Tags "")}}
- {{.Tags}}<br>
+ {{if (ne .Templates.Deviation.Tags "")}}
+ {{.Templates.Deviation.Tags}}<br>
{{end}}
- <span>Published: <strong>{{.StringTime}}</strong>; Views: <strong>{{.Post.Deviation.Stats.Views}}</strong>; Favourites: <strong>{{.Post.Deviation.Stats.Favourites}}</strong>; Downloads: <strong>{{.Post.Deviation.Stats.Downloads}}</strong></span>
- {{if (ne .Post.Description "")}}
+ <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></span>
+ {{if (ne .Templates.Deviation.Post.Description "")}}
<figcaption>
- {{.Post.Description}}
+ {{.Templates.Deviation.Post.Description}}
</figcaption>
{{end}}
- {{if (ne .Comments "")}}
- {{.Comments}}
+ {{if (ne .Templates.Deviation.Comments "")}}
+ {{.Templates.Deviation.Comments}}
{{end}}
</figure>
</main>