28 lines
667 B
HTML
28 lines
667 B
HTML
|
<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>
|