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

Bud Parr
19.27.2017 2806e91176ba500638bf609a894301b4f03dc1ba
add image to theme dir and use  for fallback
2 files modified
10 ■■■■■ changed files
layouts/partials/page-header.html 5 ●●●●● patch | view | raw | blame | history
layouts/partials/site-header.html 5 ●●●●● patch | view | raw | blame | history
layouts/partials/page-header.html
@@ -1,5 +1,6 @@
{{ if .Params.featured_image }}
  <header class="cover bg-center" style="background-image: url('{{ .Params.featured_image  | absURL }}');">
{{ $featured_image := $.Param "featured_image" }}
{{ if $featured_image }}
  <header class="cover bg-center" style="background-image: url('{{ $featured_image | absURL }}');">
    <div class="pb3-m pb6-l bg-black-60">
      {{ partial "site-navigation.html" . }}
      <div class="tc-l pv6 ph3 ph4-ns">
layouts/partials/site-header.html
@@ -1,5 +1,6 @@
{{ if .Params.featured_image }}
  <header class="cover bg-center" style="background-image: url('{{ .Params.featured_image | absURL }}');">
{{ $featured_image := $.Param "featured_image" }}
{{ if $featured_image }}
  <header class="cover bg-center" style="background-image: url('{{ $featured_image | absURL }}');">
    <div class="bg-black-60">
      {{ partial "site-navigation.html" .}}
      <div class="tc-l pv4 pv6-l ph3 ph4-ns">