Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

hexo-migrator-ghost

0.1.0 • Public • Published

hexo-migrator-ghost

Ghost migrator for Hexo.

Install

$ npm install hexo-migrator-ghost --save

Usage

Export from Ghost

Visit http://yourblog.com/ghost/debug/ , click Export and download the JSON file.

Import to Hexo

Execute the following command after installed. source is the file path exported by Ghost.

$ hexo migrate ghost <source>

Notice

This plugin will migrate following data from Ghost:

  • post title
  • post content
  • posd id
  • create date
  • update date
  • tags
  • status(is draft)
  • type(post or page)

Images will NOT be migrated!

In order to successfully migrate tags, you have to make sure the front-matter in ./scaffolds/post.md look like this:

title: {{ title }}
date: {{ date }}
tags: {{ tags }}
---
 

install

npm i hexo-migrator-ghost

Downloadsweekly downloads

2

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability