mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Bud Parr
19.49.2017 eec4d44c8d6e5fb44bdf504910a4f7ec6c7b4479
layouts/partials/site-header.html
@@ -1,6 +1,8 @@
{{ $featured_image := $.Param "featured_image" }}
{{ $featured_image := .Params.featured_image | default .Site.Params.featured_image }}
{{ if $featured_image }}
  <header class="cover bg-center" style="background-image: url('{{ $featured_image | absURL }}');">
  {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
  {{ $featured_image := (trim $featured_image "/") | absURL }}
  <header class="cover bg-center" style="background-image: url('{{ $featured_image }}');">
    <div class="bg-black-60">
      {{ partial "site-navigation.html" .}}
      <div class="tc-l pv4 pv6-l ph3 ph4-ns">