freedom/layouts/partials/item.html

28 lines
667 B
HTML
Raw Normal View History

2022-09-15 17:12:24 -04:00
<section class="listing">
<div>
{{ if .Params.video}}
<video controls preload="false">
<source src="{{.Params.video}}">
</video>
{{else}}
{{if .Params.image}}
<a href="{{.Permalink}}">
<img src="{{.Params.image}}">
</a>
{{else}}
<a href="{{.Permalink}}">
<img src="/res/default.png">
</a>
{{end}}
{{end}}
</div>
<div>
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
<p>{{.Params.description}}</p>
<div class="tags">
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}">{{.LinkTitle}}</a>
{{end}}
</div>
</div>
</section>