freedom/layouts/partials/item.html

23 lines
No EOL
650 B
HTML

<section class="listing" {{if .Params.image}} style="background-image:url({{.Site.BaseURL}}{{.Params.image}}" {{end}}>
<div class="listing-text">
<a href="{{.Permalink}}" ><h2>{{.Title}}</h2></a>
<a href="{{.Permalink}}" class="bare-link">
{{.Params.description}}
</a>
<span></span>
{{if .GetTerms "tags"}}
<div class="tags">
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}">
<svg class="icon-small">
<use href="#tag"></use>
</svg>
<span>{{.LinkTitle}}</span>
</a>
{{end}}
</div>
{{end}}
</div>
</section>