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}} {{range .NFTs}}
<figure> <figure>
<a href="/nfts/{{.Id}}"> <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> </a>
</figure> </figure>
{{end}} {{end}}