add image to theme dir and use for fallback

This commit is contained in:
Bud Parr 2017-04-18 23:27:06 -04:00
parent 8c101b4231
commit 2806e91176
No known key found for this signature in database
GPG key ID: ACA375160539D2B3
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,6 @@
{{ if .Params.featured_image }} {{ $featured_image := $.Param "featured_image" }}
<header class="cover bg-center" style="background-image: url('{{ .Params.featured_image | absURL }}');"> {{ if $featured_image }}
<header class="cover bg-center" style="background-image: url('{{ $featured_image | absURL }}');">
<div class="pb3-m pb6-l bg-black-60"> <div class="pb3-m pb6-l bg-black-60">
{{ partial "site-navigation.html" . }} {{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns"> <div class="tc-l pv6 ph3 ph4-ns">

View file

@ -1,5 +1,6 @@
{{ if .Params.featured_image }} {{ $featured_image := $.Param "featured_image" }}
<header class="cover bg-center" style="background-image: url('{{ .Params.featured_image | absURL }}');"> {{ if $featured_image }}
<header class="cover bg-center" style="background-image: url('{{ $featured_image | absURL }}');">
<div class="bg-black-60"> <div class="bg-black-60">
{{ partial "site-navigation.html" .}} {{ partial "site-navigation.html" .}}
<div class="tc-l pv4 pv6-l ph3 ph4-ns"> <div class="tc-l pv4 pv6-l ph3 ph4-ns">