From 58f2906ebd8c3ddbb8b6c9943e424b02492498f4 Mon Sep 17 00:00:00 2001 From: Christopher DeGuise Date: Tue, 14 Aug 2018 10:57:47 -0400 Subject: [PATCH 1/2] 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. --- layouts/partials/site-header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index a1d3e31..0b9649e 100755 --- a/layouts/partials/site-header.html +++ b/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 }} From afc2a4b119398f199155a00735fd1e940912a60e Mon Sep 17 00:00:00 2001 From: Christopher DeGuise Date: Wed, 26 Sep 2018 10:37:32 -0400 Subject: [PATCH 2/2] home nav image, remove black background, swapped black/white background/test --- exampleSite/config.toml | 1 + layouts/partials/site-header.html | 10 +++++----- layouts/partials/site-navigation.html | 10 +++++++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 579c5f9..93d64a7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -30,3 +30,4 @@ enableRobotsTXT = true background_color_class = "bg-black" featured_image = "/images/gohugo-default-sample-hero-image.jpg" recent_posts_number = 2 + titleImage = "" diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index 0b9649e..0cd2919 100755 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -3,14 +3,14 @@ {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{ $featured_image := (trim $featured_image "/") | absURL }}
-
+
{{ partial "site-navigation.html" .}}
-

+

{{ .Title | default .Site.Title }}

{{ with .Params.description }} -

+

{{ . }}

{{ end }} @@ -22,11 +22,11 @@
{{ partial "site-navigation.html" . }}
-

+

{{ .Title | default .Site.Title }}

{{ with .Params.description }} -

+

{{ . }}

{{ end }} diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html index 65b82de..a0a2942 100644 --- a/layouts/partials/site-navigation.html +++ b/layouts/partials/site-navigation.html @@ -1,14 +1,18 @@