diff --git a/src/components/Masthead.astro b/src/components/Masthead.astro index 06b37e5..834f8a3 100644 --- a/src/components/Masthead.astro +++ b/src/components/Masthead.astro @@ -22,19 +22,21 @@ interface Props { textTone?: BannerTextTone; } -const { article, banner, about = false } = Astro.props; +const { article, banner, about = false, textTone: toneOverride } = Astro.props; const enabled = Boolean(about || article || banner || siteConfig.banner.enabled); const image = banner ? banner.image : article?.image ?? (about ? undefined : siteConfig.banner.image); const title = about ? siteConfig.site.author.name : (banner?.title ?? article?.title ?? siteConfig.banner.title); const subtitle = banner?.subtitle ?? siteConfig.banner.subtitle; const position = banner?.position ?? siteConfig.banner.position; +const textTone = toneOverride ?? banner?.textTone ?? article?.textTone ?? siteConfig.banner.textTone ?? 'auto'; --- {enabled &&
} -{enabled && image &&