2022-12-19 08:24:21 +00:00
|
|
|
<div class='card filter-item' data-section="{{ .Section }}" data-sources='{{- partial "data/sources.html" . -}}' data-contributors='{{- partial "data/contributors.html" . -}}' data-tags='{{- partial "data/tags.html" . -}}'>
|
2021-12-15 10:29:58 +00:00
|
|
|
<article class="h-entry">
|
|
|
|
<header>
|
|
|
|
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
|
|
|
<div class="header-metadata">
|
|
|
|
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
|
|
|
{{ if .Params.author }}
|
|
|
|
<div class='author'>{{.Params.author}}</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
{{ $img := (.Resources.ByType "image").GetMatch "*featured*" }}
|
|
|
|
|
|
|
|
<div class="p-summary {{if .Truncated}} truncated {{end}} {{if $img}} image {{end}}" >
|
|
|
|
<div class="summary-text">
|
|
|
|
{{ .Summary }}
|
|
|
|
</div>
|
|
|
|
{{ with $img }}
|
|
|
|
{{ $thumb := .Resize "400x300"}}
|
|
|
|
<div class="summary-image">
|
|
|
|
<img src="{{ $thumb.Permalink }}" alt="{{ .Title }}">
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ if .Truncated }}
|
|
|
|
<footer class='post-footer'>
|
|
|
|
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div>
|
|
|
|
<div class='footer-filler'></div>
|
|
|
|
</footer>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</article>
|
|
|
|
</div>
|