Feature: add a check for tag's thumbnail

This commit is contained in:
VnPower 2023-06-04 10:53:22 +07:00
parent b6bf456949
commit b58af8d73f
Signed by: vnpower
GPG key ID: 881DE3DEB966106C

View file

@ -2,6 +2,7 @@
<div class="container">
<div class="tag-header">
{{ if .Tag.Metadata.id }}
<a href="/artworks/{{ .Tag.Metadata.id }}">
<img
class="tag-thumbnail"
@ -9,6 +10,7 @@
alt="{{ .Tag.Name }}"
/>
</a>
{{ end }}
<div class="tag-details">
<b class="main-tag">#{{ .Tag.Name }}</b>