From 9eab2e631d29b95e91f3c18f570fdea60057f75f Mon Sep 17 00:00:00 2001 From: sixpointcube Date: Wed, 19 Jun 2024 18:09:35 -0400 Subject: [PATCH] feat: support static site header --- layouts/partials/page-header.html | 8 ++++++-- layouts/partials/site-header.html | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 3891c45..2af638f 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -1,7 +1,9 @@ {{ $featured_image := partial "func/GetFeaturedImage.html" . }} {{ if $featured_image }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} -
+ {{/*
*/}} + {{ $img := resources.Get .Site.Params.site_header_image }} +
{{ partial "site-navigation.html" . }}
@@ -16,10 +18,12 @@
+ {{ else }}
-
+
{{ partial "site-navigation.html" . }}
+ {{ end }} diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index 1a0b3cb..78f0d0a 100644 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -16,6 +16,7 @@
+ {{ else }}
@@ -31,5 +32,6 @@ {{ end }}
+
{{ end }}