2.9.0 #56
EveSunMaple
announced in
Announcements
2.9.0
#56
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Important
所有
MDX组件已经移动至components/mdx目录之下,更新版本后请及时修改引用路径![2.9.0] - 2024-12-28
Features
mdx/TocCopllapse.astro组件用于在文章中添加折叠的目录(小屏幕侧边栏无法显示时才出现)remark-heading-extractor.mjs在服务端提取标题并存贮在frontmatter中Note
原本想通过此组件实现在服务端生成所有目录, 但发现侧边栏并不在
Swup的按需渲染范围之中, 所以只能保留在客户端生成目录的形式TocCard.astro(拆分Tool.astro)Refactored
ProfileCard.astro并优化了样式License.astro组件的样式与构建逻辑MDX组件进行了样式优化alert使用统一格式Kbd.astro新增大小size选项Collapse.astro组件使用自定义格式而非由 DaisyUI 提供Diff.astro组件添加了rightAlt等选项TimeLine.astro组件的样式并添加了动效LinkCard.astro组件的结构与样式TocCopllapse.astro组件badge的样式而不是使用 DaisyUI 提供的默认样式TagCard.astro与CategoryCard.astro中使用全新的badge样式EnvelopeCard.astro组件的样式badge样式BaseCard.astro组件中文章信息的样式ProjectCard.astro组件的样式与逻辑utils/github.ts等文件中Watch的数据统计Navbar.astro组件的样式与逻辑Pagination.astroTocCard的滑动条code的样式Fix
CategoryCard.astro组件中错误的变量命名Chore
interface的定义iconify提供的图标EN
Important
All
MDXcomponents have been moved to thecomponents/mdxdirectory. Please update the import paths after upgrading to the new version![2.9.0] - 2024-12-28
Features
mdx/TocCollapse.astrocomponent to add a collapsible table of contents in articles (it only appears when the sidebar is not visible on small screens).remark-heading-extractor.mjsto extract headings on the server side and store them infrontmatter.Note
The initial intention was to generate the entire table of contents on the server side, but it was found that the sidebar is not part of the on-demand rendering range of
Swup, so the table of contents can only be generated on the client side.TocCard.astro(split fromTool.astro).Refactored
ProfileCard.astro, and optimized the styles.License.astrocomponent.MDXcomponents.alertcomponents.Kbd.astroand added asizeoption.Collapse.astrocomponent to use custom formats instead of DaisyUI.rightAltfor theDiff.astrocomponent.TimeLine.astroand added animations.LinkCard.astro.TocCollapse.astrocomponent.badgestyles instead of using DaisyUI’s default.badgestyle inTagCard.astroandCategoryCard.astro.EnvelopeCard.astro.badgestyle for article category and tag information.BaseCard.astro.ProjectCard.astro.utils/github.tsand other files.Watch.Navbar.astro.Pagination.astro.TocCard.code.Fix
CategoryCard.astro.Chore
interfacedefinitions.iconify.Full Changelog: v2.9.0-rc...v2.9.0
This discussion was created from the release 2.9.0.
Beta Was this translation helpful? Give feedback.
All reactions