Migration from Other
从 Hexo 迁移至 Valaxy
Migrate from Hexo to Valaxy
从其他任意博客框架迁移
Migrate from any other blog framework
- 将你的文章(Markdown 文件)复制至 Valaxy
pages/posts目录下。 - 将你的自定义页面(非文章的 Markdown/HTML 文件)复制至 Valaxy
pages目录下。 - 将你的静态资源(图片等)复制至 Valaxy
public目录下。 - 参考 配置 配置你的配置文件
valaxy.config.ts/site.config.ts。
- Copy your posts (Markdown files) to the Valaxy
pages/postsdirectory. - Copy your custom pages (non-article Markdown/HTML files) to the Valaxy
pagesdirectory. - Copy your static resources (images, etc.) to the Valaxy
publicdirectory. - Configure your configuration file
valaxy.config.ts/site.config.tsby referring to configuration.
常见问题
Common Problems
摘要截断符
Read More Separator
默认为 <!-- more -->,more 前后需有空格。
Default to <-- More -->, there are spaces before and after more.
Markdown 换行
Newline in Markdown
Valaxy 的 Markdown 解析基于 markdown-it 实现。
没有换行
markdown-it 的策略在 Markdown 中换行后渲染的内容并没有换行:
md
第一行
没有换行第一行 没有换行
换行了
如果需要正常换行,需在末尾添加两个空格:
md
第一行(末尾有两个空格)
换行了第一行(末尾有两个空格)
换行了
Markdown rendering in Valaxy is based on markdown-it.
The default strategy of markdown-it does not wrap the rendered content when wrapping in Markdown:
md
first line
second line but not wrappedfirst line second line but not wrapped
If you want to move the second line to a new line, add two spaces at the end of the first line:
md
first line (with two spaces at the end)
second line got wrapped correntlyfirst line (with two spaces at the end)
second line got wrapped corrently