evilsocket / Octoghost
Licence: gpl-3.0
A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.
Stars: ✭ 26
Programming Languages
python
139335 projects - #7 most used programming language
Octopress 2 Ghost
A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.
These are the preliminar steps:
- Setup Ghost, signup, signin and remove the welcome post.
- Go to
/ghost/debug
and export the database. It'll save a file namedGhostData.json
. - Download
octopress2ghost.py
and install the requirements:pip install translitcodec
Run the conversion script:
python octopress2ghost.py <octopress-posts> <ghost-data> | python -mjson.tool > import-this.json
Where octopress-posts is a directory with the Octopress posts and ghost-data is the JSON exported from Ghost.
Now go to /ghost/debug
and import the obtained JSON file.
If everything goes well you should be able to signin again and all your Octopress posts will be there.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].