From ea7e9a68eaf603256bc1be41d63108b93ba0df9b Mon Sep 17 00:00:00 2001 From: Martin Hofmann Date: Sun, 23 Apr 2023 19:05:29 +0200 Subject: [PATCH 1/6] Make home image optional --- layouts/partials/header.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ff90cb5c..da54f449 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,6 @@
+ {{ if isset .Site.Params "home_image" }} + {{ end }} {{ end }} -
+ {{ end }} -
+

{{ if isset .Site.Params "header_title" }} From 73f97d5f86a5f1da11c57813bb042718f8dee994 Mon Sep 17 00:00:00 2001 From: Martin Hofmann Date: Tue, 25 Apr 2023 18:59:03 +0200 Subject: [PATCH 4/6] Mark home_image as optional in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index edb23f87..d373e22a 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ copyright = "© Copyright Year, Your Name" description = "Your meta description" # Your meta description of the site header_title = "Your Name" # Your header title header_subtitle = "Your Creative Subtitle" # Your header subtitle - home_image = "/images/avatar.png" # Path to header image starting from the static directory + home_image = "/images/avatar.png" # Path to header image starting from the static directory (optional) recent_posts = 5 # Max amount of recent posts to show mainSections = ["posts", "post", "blog"] # Main sections to include in recent posts [params.style] # CSS style overrides From 37809c0ef6dcdc1f6711d40823bdd849e1b3bb30 Mon Sep 17 00:00:00 2001 From: Martin Hofmann Date: Mon, 1 May 2023 17:43:38 +0200 Subject: [PATCH 5/6] Center header content if no home_image is used --- layouts/partials/header.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index db8a6444..64cc7736 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,8 +16,10 @@ />

+