From 7b5196ad18b65ead0ec3157d28aaf3a0b02b0a30 Mon Sep 17 00:00:00 2001
From: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sun, 23 Jul 2017 12:36:54 +0000
Subject: [PATCH] Make Hero image work out-of-the box (#40)

---
 /dev/null                         |    0 
 layouts/partials/site-header.html |    2 +-
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exampleSite/static/images/gohugo-default-sample-hero-image.jpg b/exampleSite/static/images/gohugo-default-sample-hero-image.jpg
deleted file mode 100644
index 0681583..0000000
--- a/exampleSite/static/images/gohugo-default-sample-hero-image.jpg
+++ /dev/null
Binary files differ
diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
index f715e00..a1d3e31 100755
--- a/layouts/partials/site-header.html
+++ b/layouts/partials/site-header.html
@@ -1,4 +1,4 @@
-{{ $featured_image := .Params.featured_image }}
+{{ $featured_image := .Param "featured_image" | default "images/gohugo-default-sample-hero-image.jpg" }}
 {{ if $featured_image }}
   {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
   {{ $featured_image := (trim $featured_image "/") | absURL }}

--
Gitblit v1.10.0