mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Feature: show popular artworks for a tag
This commit is contained in:
@@ -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" }}
|
||||
|
||||
Reference in New Issue
Block a user