From 963107a536e9000c30c7c868985a1dc943e38e2f Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 20 Jan 2022 21:43:29 +0000 Subject: [PATCH] feat: rename old Params.header to Params.banner Avoid conflict with new `header` param that configures site header --- wowchemy/layouts/partials/page_header.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wowchemy/layouts/partials/page_header.html b/wowchemy/layouts/partials/page_header.html index fb7806a0..33357697 100644 --- a/wowchemy/layouts/partials/page_header.html +++ b/wowchemy/layouts/partials/page_header.html @@ -14,12 +14,12 @@ {{end}} {{end}} -{{/* Header image */}} -{{ if and .Params.header.image (not (and $featured (not .Params.image.preview_only))) }} +{{/* Banner image */}} +{{ if and .Params.banner.image (not (and $featured (not .Params.image.preview_only))) }}
{{- $img := "" -}} - {{ $alt := (.Params.header.caption | default "") | plainify }} - {{ $destination := .Params.header.image }} + {{ $alt := (.Params.banner.caption | default "") | plainify }} + {{ $destination := .Params.banner.image }} {{ $is_remote := strings.HasPrefix $destination "http" }} {{- if not $is_remote -}} {{- $img = (.Page.Resources.ByType "image").GetMatch $destination -}} @@ -30,10 +30,10 @@ {{ if $img }} {{$alt}} {{ else }} - {{$alt}} + {{$alt}} {{ end }} - {{ with .Params.header.caption }}{{ . | markdownify | emojify }}{{ end }} + {{ with .Params.banner.caption }}{{ . | markdownify | emojify }}{{ end }}
{{end}}