Feature: show popular artworks for a tag
This commit is contained in:
parent
a5fbfee28e
commit
32237ec17f
2 changed files with 13 additions and 0 deletions
6
template/small-tn-normal.html
Normal file
6
template/small-tn-normal.html
Normal 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 }}
|
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue