RSS
首先,安装 hexo-migrator-rss 插件。
¥First, install the hexo-migrator-rss plugin.
$ npm install hexo-migrator-rss --save |
安装插件后,运行以下命令从 RSS 迁移所有帖子。source 可以是文件路径或 URL。
¥Once the plugin is installed, run the following command to migrate all posts from RSS. source can be a file path or URL.
$ hexo migrate rss <source> |
Jekyll
将 Jekyll _posts 文件夹中的所有文件移动到 source/_posts 文件夹。
¥Move all files in the Jekyll _posts folder to the source/_posts folder.
修改 _config.yml 中的 new_post_name 设置:
¥Modify the new_post_name setting in _config.yml:
new_post_name: :year-:month-:day-:title.md |
Octopress
将 Octopress source/_posts 文件夹中的所有文件移动到 source/_posts
¥Move all files in the Octopress source/_posts folder to source/_posts
修改 _config.yml 中的 new_post_name 设置:
¥Modify the new_post_name setting in _config.yml:
new_post_name: :year-:month-:day-:title.md |
WordPress
首先,安装 hexo-migrator-wordpress 插件。
¥First, install the hexo-migrator-wordpress plugin.
$ npm install hexo-migrator-wordpress --save |
通过在 WordPress 仪表板中转到 “工具” → “导出” → “WordPress” 来导出你的 WordPress 网站(有关更多详细信息,请参阅 WordPress 支持页面)。
¥Export your WordPress site by going to “Tools” → “Export” → “WordPress” in the WordPress dashboard (see the WordPress support page for more details).
现在运行:
¥Now run:
$ hexo migrate wordpress <source> |
其中 source 是 WordPress 导出文件的文件路径或 URL。
¥Where source is the file path or URL to the WordPress export file.
Joomla
首先,安装 hexo-migrator-joomla 插件。
¥First, install the hexo-migrator-joomla plugin.
$ npm install hexo-migrator-joomla --save |
使用 J2XML 组件导出你的 Joomla 文章。
¥Export your Joomla articles using the J2XML component.
现在运行:
¥Now run:
$ hexo migrate joomla <source> |
其中 source 是 Joomla 导出文件的文件路径或 URL。
¥Where source is the file path or URL to the Joomla export file.