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

cdeguise
04.09.2018 37bb3cc6991d3741dca08a52d41b1b3beecd1825
Removed hardcoded theme sample hero image. This will allow the user to "blank" out the hero default set in the config. The if statement for blank was unreachable. (#133)

1 files modified
2 ■■■ changed files
layouts/partials/site-header.html 2 ●●● patch | view | raw | blame | history
layouts/partials/site-header.html
@@ -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 }}