From 5a1776455f8a8e661c88ce8989cab4e82dc1e032 Mon Sep 17 00:00:00 2001
From: Cyrill Raccaud <miaucl@users.noreply.github.com>
Date: Mon, 21 Oct 2024 08:48:03 +0000
Subject: [PATCH] complete the feature for the cover dimming class in page (#732)
---
layouts/partials/site-header.html | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
index 7a121fb..777b436 100644
--- a/layouts/partials/site-header.html
+++ b/layouts/partials/site-header.html
@@ -1,8 +1,10 @@
{{ $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="{{ .Site.Params.featured_image_class | default "cover bg-top" }}" style="background-image: url('{{ $featured_image }}');">
- <div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
+ {{ $featured_image_class := site.Params.featured_image_class | default "cover bg-top" }}
+ <header class="{{ $featured_image_class }}" style="background-image: url('{{ $featured_image }}');">
+ {{ $cover_dimming_class := site.Params.cover_dimming_class | default "bg-black-60" }}
+ <div class="{{ $cover_dimming_class }}">
{{ partial "site-navigation.html" .}}
<div class="tc-l pv4 pv6-l ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
--
Gitblit v1.10.0