Feature: show popular artworks for a tag

This commit is contained in:
VnPower 2023-06-03 15:58:52 +07:00
parent a5fbfee28e
commit 32237ec17f
Signed by: vnpower
GPG key ID: 881DE3DEB966106C
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,6 @@
{{ range . }} {{ if not (isEmpty .ID) }}
<div class="artwork-thumbnail-small artwork-thumbnail">
{{ template "thumbnail-dt.html" . }} {{ template "thumbnail-tt.html" . }} {{
template "thumbnail-at.html" . }}
</div>
{{ end }} {{ end }}

View file

@ -18,6 +18,13 @@
<p class="tag-description">{{ .Tag.Metadata.abstract }}</p>
</div>
</div>
{{ if .Data.Popular.Recent }}
<h2>Popular artworks</h2>
<div class="thumbnail-container">
{{ template "small-tn-normal.html" .Data.Popular.Recent }} {{ template
"small-tn-normal.html" .Data.Popular.Permanent }}
</div>
{{ end }}
<!-- Switchers here -->
</div>
{{ template "footer.html" }}