diff --git a/layouts/shortcodes/blocks/cover.html b/layouts/shortcodes/blocks/cover.html index e758032..bd3d86f 100644 --- a/layouts/shortcodes/blocks/cover.html +++ b/layouts/shortcodes/blocks/cover.html @@ -2,8 +2,7 @@ {{ $blockID := printf "td-cover-block-%d" .Ordinal }} {{ $promo_image := (.Page.Resources.ByType "image").GetMatch "**background*" }} {{ $promo_image_dark := (.Page.Resources.ByType "image").GetMatch "**darkground*" -}} -{{ $logo_image := (.Page.Resources.ByType "image").GetMatch "**logo*" }} -{{ $logo_image_dark := (.Page.Resources.ByType "image").GetMatch "**darkogo*" }} +{{ $logo_image := (.Page.Resources.ByType "image").GetMatch "**darkogo*" }} {{ $col_id := .Get "color" | default "dark" }} {{ $class := .Get "class" | default "" }} {{ $image_anchor := .Get "image_anchor" | default "smart" }} @@ -32,12 +31,6 @@ background-image: url({{ $promo_image_big.RelPermalink }}); } } -.cover-logo-light { - display: block; -} -.cover-logo-dark { - display: none; -} [data-bs-theme="dark"]{ #{{ $blockID }} { background-image: url({{ $promo_image_dark_small.RelPermalink }}); @@ -47,13 +40,6 @@ background-image: url({{ $promo_image_dark_big.RelPermalink }}); } } -.cover-logo-light { - display: none; -} -.cover-logo-dark { - display: block; -} - } {{ end }} @@ -68,10 +54,7 @@
{{ with .Get "title" }}

{{ $title := . }} {{ with $logo_image }} - {{ with $logo_image_dark }} - - {{ end }} {{ end }}

{{ end }}