From 32237ec17f2ec89a4e2601d7825f40eaf1cdbbec Mon Sep 17 00:00:00 2001 From: VnPower Date: Sat, 3 Jun 2023 15:58:52 +0700 Subject: [PATCH] Feature: show popular artworks for a tag --- template/small-tn-normal.html | 6 ++++++ template/tag.html | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 template/small-tn-normal.html diff --git a/template/small-tn-normal.html b/template/small-tn-normal.html new file mode 100644 index 0000000..5cb3771 --- /dev/null +++ b/template/small-tn-normal.html @@ -0,0 +1,6 @@ +{{ range . }} {{ if not (isEmpty .ID) }} +
+ {{ template "thumbnail-dt.html" . }} {{ template "thumbnail-tt.html" . }} {{ + template "thumbnail-at.html" . }} +
+{{ end }} {{ end }} diff --git a/template/tag.html b/template/tag.html index 5101d53..4dfcd45 100644 --- a/template/tag.html +++ b/template/tag.html @@ -18,6 +18,13 @@

{{ .Tag.Metadata.abstract }}

+ {{ if .Data.Popular.Recent }} +

Popular artworks

+
+ {{ template "small-tn-normal.html" .Data.Popular.Recent }} {{ template + "small-tn-normal.html" .Data.Popular.Permanent }} +
+ {{ end }} {{ template "footer.html" }}