Migration from Other
AI Migration Assistant
Select your source framework, copy the prompt to your AI assistant, and migrate quickly.
I'm migrating my blog from Hexo to Valaxy. Please help me with: 1. Migrate Markdown files from Hexo source/_posts to Valaxy pages/posts directory 2. Convert Hexo frontmatter format to Valaxy-supported format (date, tags, categories) 3. Convert Hexo _config.yml site configuration to Valaxy's site.config.ts and valaxy.config.ts 4. Migrate static assets (images, etc.) from source to public directory 5. Convert any Hexo tag plugins to Valaxy/Markdown equivalents
Migrate from Hexo to Valaxy
Migrate Contents
The relationship between Hexo blog directory and Valaxy blog directory is shown in the table below. Just copy the relevant contents to the corresponding folder.
For example: To migrate articles, just copy files from Hexo’s
source/_poststo Valaxy’spages/postsdirectory.
| Contents | Hexo | Valaxy |
|---|---|---|
| Posts (Markdown files) | source/_posts | pages/posts |
| Pages (Markdown / Html files) | source | pages |
Static assets (*.js / *.css / CNAME etc.) | source | public |
Migrate Configurations
Refer to Valaxy Config to migrate configurations from Hexo’s _config.yml to Valaxy’s valaxy.config.ts.
Examples of configuration: demo/yun/valaxy.config.ts, yunyoujun.github.io/valaxy.config.ts.
valaxy.config.tsprovides a complete type prompt, which means that you can hover on configuration fields directly to view the comments in VSCode.
Example
For more complex migration examples, you can also compare hexo branch and valaxy branch in yunyoujun.github.io | GitHub to see the similarities and differences.
Migrate from any other blog framework
- 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
Default to <!-- more -->, there are spaces before and after more.
Newline in Markdown
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:
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:
first line (with two spaces at the end)
second line got wrapped correctlyfirst line (with two spaces at the end)
second line got wrapped correctly