mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 15:09:12 +00:00
fix: properly compare HIDE_DESCRIPTION env variable as string
Co-authored-by: miantiao-me <2959393+miantiao-me@users.noreply.github.com>
This commit is contained in:
@@ -103,7 +103,7 @@ const hideDescription = getEnv(import.meta.env, Astro, 'HIDE_DESCRIPTION')
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{
|
{
|
||||||
!hideDescription && channel?.descriptionHTML && channel?.descriptionHTML.length > 0 && (
|
hideDescription !== 'true' && channel?.descriptionHTML && channel?.descriptionHTML.length > 0 && (
|
||||||
<div class="text-box" id="site-intro" set:html={channel?.descriptionHTML} />
|
<div class="text-box" id="site-intro" set:html={channel?.descriptionHTML} />
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user