> ## Content Index
> Fetch the complete content index at: https://yinguobing.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# 如何从Wordpress迁移到Ghost
- URL: https://yinguobing.com/blog/migrating-from-wordpress-to-ghost/
- Published: 2016-09-13T14:36:16.000Z
- Updated: 2022-05-29T07:43:09.000Z
- Description: 从Wordpress迁移到Ghost，原因以及具体方法。
- Author: 尹国冰
- Tags: 生活故事

## 前言

最近把博客系统从Wordpress替换为Ghost。主要原因是：

- Wordpress加载太慢了；
- 多年来积攒的博文数量并不多，Wordpress众多高级的功能都没有排上用场；
- 找到一款合适主题太难了。

## 具体步骤

切换到Ghost并不是很困难，大概分3步：

#### Step 1: 安装导出到Ghost的插件

这个插件会将你的所有博文和页面内容导出为json格式。具体可参见参考资料\[^3\]。需要注意的是Ghost无法把Wordpress的分类导出，所以你需要想好自己的分类目录要如何处理。

#### Step 2: 迁移upload文件夹

你在Wordpress上传的图片与附件都在这个文件夹里。这个文件夹对应Ghost目录里的`content/images`文件夹。所以需要把相关的文件前移过去。并且将第一步中json文件中关于附件的url进行替换，具体请参考\[1\]。

#### Step 3: 迁移评论

Ghost没有自带的评论系统，官方推荐使用Disquz，国内可能用多说的会多一点。多说官方提供了Node.js的的API，需要自己修改添加到Ghsot的主题中。

## 参考资料：

---

[How to Migrate from WordPress To Ghost](https://www.ghostforbeginners.com/migrating-your-wordpress-blog-to-ghost/?ref=yinguobing.com) ↩︎