Skip to content

Commit

Permalink
Removed hardcoded theme sample hero image. This will allow the user t…
Browse files Browse the repository at this point in the history
…o "blank" out the hero default set in the config. The if statement for blank was unreachable. (#133)
  • Loading branch information
cdeguise authored and Bud Parr committed Nov 4, 2018
1 parent 393db96 commit 37bb3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/site-header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $featured_image := .Param "featured_image" | default "images/gohugo-default-sample-hero-image.jpg" }}
{{ $featured_image := .Param "featured_image"}}
{{ 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 }}
Expand Down

0 comments on commit 37bb3cc

Please sign in to comment.