blob: b84ba923f5ee5b08c6ebbd266e80feb7e54a1dd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<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>
|