Videos en index
This commit is contained in:
parent
3f07894052
commit
5b6cf19548
1 changed files with 5 additions and 1 deletions
|
@ -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}}
|
||||||
|
|
Loading…
Reference in a new issue