gabrielgio.me @ efeff0b95653056677bdf6fecc3064bc813b555a

 1{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
 2<article class="bb b--black-10">
 3  <div class="db pv4 ph3 ph0-l no-underline dark-gray">
 4    <div class="flex flex-column flex-row-ns">
 5      {{ if $featured_image }}
 6          {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
 7        {{ $featured_image := (trim $featured_image "/") | absURL }}
 8        <div class="pr3-ns mb4 mb0-ns w-100 w-40-ns">
 9          <a href="{{.Permalink}}" class="db grow">
10            <img src="{{ $featured_image }}" class="img" alt="image from {{ .Title }}">
11          </a>
12        </div>
13      {{ end }}
14      <div class="blah w-100{{ if $featured_image }} w-60-ns pl3-ns{{ end }}">
15        <h1 class="f3 fw1 athelas mt0 lh-title">
16          <a href="{{.Permalink}}" class="color-inherit dim link">
17            {{ .Title }}
18            </a>
19        </h1>
20        <div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
21          {{ .Summary }}
22        </div>
23          <a href="{{.Permalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a>
24        {{/* TODO: add author
25        <p class="f6 lh-copy mv0">By {{ .Author }}</p> */}}
26      </div>
27    </div>
28  </div>
29</article>