feat: enhance typography and image handling

- Add Heti typography plugin for improved Chinese text layout
- Implement rehype plugin to convert images to figure elements with captions
- Update UnoCSS configuration by removing typography preset
- Modify file extensions for consistency (.mjs to .js)
- Add new plugins for admonition, GitHub card, and reading time components
- Improve image and text styling with Heti CSS
This commit is contained in:
radishzzz 2025-02-15 21:11:17 +00:00
parent c549814c7e
commit 9d6de20b6a
19 changed files with 1006 additions and 556 deletions

View file

@ -7,7 +7,8 @@ const currentPath = Astro.url.pathname
const { getLocalizedPath } = getPagePath(currentPath)
---
<header class="mt-4.7 text-8.6 c-secondary font-bold font-title lg:hidden">
<header class="mt-4.7 mb-17 text-8.6 c-secondary font-bold font-title lg:hidden">
<!-- Fix text cut issue on ios by adding a div tag -->
<div
class="box-content inline-block pr-2"
transition:name="site-title"