fix: `siteConfig.banner.position` not working

This commit is contained in:
saicaca 2024-07-27 15:15:26 +08:00
parent 2eff25dc12
commit b0337a997e
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ const siteLang = siteConfig.lang.replace('_', '-')
<div id="banner-wrapper" class="absolute w-full">
<ImageWrapper id="boxtest" alt="Banner image of the blog" class:list={["object-center object-cover h-full", {"hidden": !siteConfig.banner.enable}]}
src={siteConfig.banner.src}
<ImageWrapper id="boxtest" alt="Banner image of the blog" class:list={["object-cover h-full", {"hidden": !siteConfig.banner.enable}]}
src={siteConfig.banner.src} position={siteConfig.banner.position}
>
</ImageWrapper>
</div>