gabrielgio.me @ 4b494b189fc1d1dcf9dc7cf6ab6f0275729c63ce

 1{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
 2{{ if $featured_image }}
 3  {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
 4  {{ $featured_image := (trim $featured_image "/") | absURL }}
 5  <header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
 6    <div class="pb3-m pb6-l bg-black-60">
 7      {{ partial "site-navigation.html" . }}
 8      <div class="tc-l pv6 ph3 ph4-ns">
 9        {{ if not .Params.omit_header_text }}
10          <h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1>
11          {{ with .Params.description  }}
12            <h2 class="fw1 f5 f3-l white-80 measure-wide-l center lh-copy mt3 mb4">
13              {{ . }}
14            </h2>
15          {{ end }}
16        {{ end }}
17      </div>
18    </div>
19  </header>
20{{ else }}
21  <header>
22    <div class="{{ .Site.Params.background_color_class | default "bg-black" }}">
23      {{ partial "site-navigation.html" . }}
24    </div>
25  </header>
26{{ end }}