Make pages headers use params.cover_dimming_class similarly to site header

This commit is contained in:
Ramiro Morales 2024-07-18 12:21:46 +02:00
parent f34c219436
commit 5c29793a22

View File

@ -2,7 +2,7 @@
{{ 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 }}');">
<div class="bg-black-60">
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
{{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns">
{{ if not .Params.omit_header_text }}