aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/post.html
blob: 19352e6820a41eaba18bb8d4a16c5fdd7ece2746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<article class="pv4 bt bb b--black-10">
<a class="db no-underline dim" href= "{{ .RelPermalink }}">
  <h3 class="f3 baskerville mt0 lh-title near-black">{{.Title }}</h3>
  <div class="cf">
    {{ if isset .Params "image" }}
    {{ $image := resources.Get .Params.image }}
    {{ $image := $image.Resize (default "320x" .Params.thumbnail_size) }}
    <div class="fl-ns mb4 mb0-ns pr3-ns">
      <img src="{{ $image.RelPermalink }}" class="db center">
    </div>
    {{ end }}
    <div class="f5 lh-copy near-black">
      <!-- {{ .Summary }} -->
      {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }}
    </div>
  </div>
</a>
{{ if isset .Params "metadata" }}
{{ partial "metadata.html" . }}
{{ end }}
</article>