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

@ -14,8 +14,9 @@ const marginBottom = {
}[titleSpace] || 'mb-3'
---
<header>
<header class="mb-17">
<h1 class={`${marginBottom} text-12.8 c-primary font-bold font-title`}>
<!-- Fix text cut issue on ios by adding a div tag -->
<div
class="box-content inline-block pr-2"
transition:name="site-title"

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"

View file

@ -12,7 +12,7 @@ const isTagActive = isTag
const isAboutActive = isAbout;
---
<nav class="mb-17 mt-17 text-5.84 font-semibold leading-14 font-navbar">
<nav class="mb-17 text-5.84 font-semibold leading-14 font-navbar">
<ul>
<li>
<a