feat: enhance CSS processing and content rendering

- Added postcss-nesting for improved CSS nesting support
- Updated dependencies to support new CSS processing features
- Modified HTML content handling to improve accessibility and styling
- Enhanced post content parsing for better rendering and SEO
This commit is contained in:
ccbikai
2024-08-06 13:02:57 +08:00
parent 8f0a1335fd
commit b8ab845520
7 changed files with 67 additions and 16 deletions

View File

@@ -114,8 +114,8 @@ const staticProxy = getEnv(import.meta.env, Astro, 'STATIC_PROXY') ?? '/static/'
</div>
{
channel?.description && channel?.description.length > 0 && (
<div class="text-box" id="site-intro" set:html={channel?.description} />
channel?.descriptionHTML && channel?.descriptionHTML.length > 0 && (
<div class="text-box" id="site-intro" set:html={channel?.descriptionHTML} />
)
}
@@ -123,6 +123,10 @@ const staticProxy = getEnv(import.meta.env, Astro, 'STATIC_PROXY') ?? '/static/'
#site-intro {
color: var(--secondary-color);
word-break: break-word;
& :global(.emoji) {
font-style: normal;
}
}
.social-icon {