From 9fc4b73a36721caeea48455b2c089dd476a00ecf Mon Sep 17 00:00:00 2001
From: Cyrill Raccaud <miaucl@users.noreply.github.com>
Date: Mon, 21 Oct 2024 07:57:39 +0000
Subject: [PATCH] theme(fix): header image positioning (#731)
---
layouts/partials/page-header.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html
index 3891c45..51eb0e1 100644
--- a/layouts/partials/page-header.html
+++ b/layouts/partials/page-header.html
@@ -1,7 +1,7 @@
{{ $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 */}}
- <header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
+ <header class="{{ .Params.featured_image_class | .Site.Params.featured_image_class | default "cover bg-top" }}" style="background-image: url('{{ $featured_image }}');">
<div class="bg-black-60">
{{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns">
--
Gitblit v1.10.0