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:
copilot-swe-agent[bot]
2025-12-14 02:44:31 +00:00
parent a3b8c97bc3
commit 9e6da8fdb8

View File

@@ -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} />
) )
} }