SkunkyArt/templates/post.htm

53 lines
2.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="UTF-8">
<title>{{.Author}} — {{.Postname}} | SkunkyArt</title>
<link rel="stylesheet" href="/static/base.css">
</head>
<body>
<form method="get" action="/search">
<input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
<select name="scope">
<option value="all">All</option>
<option value="tag">Tag</option>
</select>
<button type="submit">Search!</button>
</form>
<figure>
<img src="/avatar/{{.Author}}" width="30px">
<span><strong><a href="/user/{{.Author}}">{{.Author}}</a></strong> — {{if (.DD)}}
<span class="dd" title="Daily Deviation!"><b>{{.Postname}}</b></span>
{{else}}{{.Postname}}{{end}}
{{if (ne .License "none")}}({{.License}}){{end}} {{if (.Ai)}}[🤖]{{end}}
{{if (.Nsfw)}}[<span class="nsfw">NSFW</span>]{{end}}
</span>
<br>
{{if (ne .Img "/image/")}}
<img src="{{.Img}}" width="50%">
<br>
{{end}}
<span>Published: <strong>{{.Time}}</strong>; Views: <strong>{{.Views}}</strong>; Favourites: <strong>{{.FavsCount}}</strong>; Downloads: <strong>{{.Downloads}}</strong></span>
{{define "T"}}
{{if (ne . "")}}
<br>
<span>Tags: <strong>{{.}}</strong></span>
{{end}}
{{end}}
{{define "R"}}
<h2>See also:</h2>
<div class="content">
{{.}}
</div>
{{end}}
<br>
<br>
{{define "D"}}
<figcaption>{{.}}</figcaption>
{{end}}
{{define "C"}}
{{.}}
</figure>
</body>
</html>
{{end}}