1
Fork 0
theorangeone.net-legacy/layouts/partials/list_item.html

22 lines
787 B
HTML
Raw Normal View History

2017-10-27 22:56:44 +01:00
<div class="media list-page-item mb-3">
{{ if .Params.image }}
<div class="d-none d-md-block align-self-center img-wrapper mr-3">
<a href="{{ .Permalink }}">
2018-01-04 10:48:54 +00:00
{{ .Scratch.Set "image" .Params.image }}
{{ if hasPrefix .Params.image "resource:" }}
{{ $resource := .Resources.GetByPrefix (replace .Params.image "resource:" "") }}
{{ .Scratch.Set "image" ($resource.Resize "300x").Permalink }}
{{ end }}
<div class="image" data-image='{{ .Scratch.Get "image" }}'></div>
2017-10-27 22:56:44 +01:00
</a>
</div>
{{ end }}
<div class="media-body">
<a href="{{ .Permalink }}">
<h5 class="my-0">{{ .Title }}</h5>
2017-10-27 22:56:44 +01:00
</a>
<small>{{ partial "content-details.html" . }}</small>
2017-11-09 13:48:28 +00:00
<p>{{ partial "summary.html" . }}</p>
2017-10-27 22:56:44 +01:00
</div>
</div>