You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
主要内容是说明一下 Astro 版本与 Hexo 版本可能出现的差异
Markdown 标签问题
由于 Astro 使用 remark 而非 markdown-it 进行渲染,所以现有 markdown 扩展标签无法直接使用,且部分标签难以迁移
好消息是 remark 此方面支持相当不错,因而保守估计65%的功能都能无损迁移,剩余部分可能需要 mdx(需要引入 Vue 或 Astro 组件)或会改变运行模式(例如SSR变成CSR)
配置问题
受制于 Astro 并非一个单纯的 Blog 系统,配置文件是无法无损迁移的(或者说无损迁移的成本大于重构成本)
路径差异
Astro 的内容集合机制和 hexo 差异比较大,但能强行救回来,理论上也能无损(前提是没有使用时间格式,用了就不太好整)
魔改问题
魔改除了 css 基本上全寄()
但好消息是能直接导入 Vue 3 或 React 组件了
Beta Was this translation helpful? Give feedback.
All reactions