2022-09-15 17:12:24 -04:00
|
|
|
<section class="listing">
|
|
|
|
<div>
|
2022-09-18 16:21:16 -04:00
|
|
|
|
|
|
|
{{ if .Params.gif}}
|
|
|
|
<video autoplay loop preload="true">
|
|
|
|
<source src="{{.Site.BaseURL}}{{.Params.gif}}">
|
|
|
|
</video>
|
|
|
|
{{else}}
|
2022-09-15 17:12:24 -04:00
|
|
|
{{ if .Params.video}}
|
|
|
|
<video controls preload="false">
|
2022-09-17 19:22:55 -04:00
|
|
|
<source src="{{.Site.BaseURL}}{{.Params.video}}">
|
2022-09-15 17:12:24 -04:00
|
|
|
</video>
|
|
|
|
{{else}}
|
|
|
|
{{if .Params.image}}
|
2022-09-17 19:22:55 -04:00
|
|
|
<a href="{{.Site.BaseURL}}{{.Permalink}}">
|
|
|
|
<img src="{{.Site.BaseURL}}{{.Params.image}}">
|
2022-09-15 17:12:24 -04:00
|
|
|
</a>
|
|
|
|
{{else}}
|
2022-09-17 19:22:55 -04:00
|
|
|
<a href="{{.Site.BaseURL}}{{.Permalink}}">
|
2022-09-20 22:56:20 -04:00
|
|
|
<img src="{{.Site.BaseURL}}{{.Site.Params.default_img}}">
|
2022-09-15 17:12:24 -04:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2022-09-18 16:21:16 -04:00
|
|
|
{{end}}
|
2022-09-15 17:12:24 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
|
|
|
|
<p>{{.Params.description}}</p>
|
2022-09-18 16:21:16 -04:00
|
|
|
{{if .GetTerms "tags"}}
|
2022-09-15 17:12:24 -04:00
|
|
|
<div class="tags">
|
|
|
|
{{ range (.GetTerms "tags")}}
|
|
|
|
<a href="{{.Permalink}}">{{.LinkTitle}}</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2022-09-18 16:21:16 -04:00
|
|
|
{{end}}
|
2022-09-15 17:12:24 -04:00
|
|
|
</div>
|
|
|
|
</section>
|