<article class="pv4 bt bb b--black-10"> <a class="db no-underline dim near-black" href="{{ .RelPermalink }}"> <h3 class="f3 baskerville mt0 lh-title">{{ .Title }}</h3> <div class="cf"> {{ $image := "" }} {{ if (.Resources.ByType "image").GetMatch "featured*" }} {{ $image = (.Resources.ByType "image").GetMatch "*featured*" }} {{ else if resources.Get (index .Params.images 0) }} {{ $image = resources.Get (index .Params.images 0) }} {{ end }} {{ with $image }} <div class="fl-ns mb4 mb0-ns pr3-ns"> <img src="{{ if ne .MediaType.SubType "svg" }} {{ $image := .Fill (default "320x210" $.Params.thumbnail_size) }} {{ $image.RelPermalink }} {{ else }} {{ $image.RelPermalink }} {{ end }}" class="mw-20-ns db center" /> </div> {{ end }} <div class="f5 lh-copy"> <!-- {{ .Summary }} --> {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }} </div> </div> </a> {{ if in (slice "post" "talk" "publication") .Section }} {{ partial "metadata.html" . }} {{ end }} </article>