Videos en index

This commit is contained in:
Cat /dev/Nulo 2021-11-10 10:39:53 -03:00
parent 3f07894052
commit 5b6cf19548

View file

@ -11,7 +11,11 @@
{{range .NFTs}}
<figure>
<a href="/nfts/{{.Id}}">
<img src="/static/nfts/{{.FileName}}">
{{if .IsVideo}}
<video controls loop src="/static/nfts/{{.FileName}}"></video>
{{else}}
<img src="/static/nfts/{{.FileName}}">
{{end}}
</a>
</figure>
{{end}}