{"id":15673807,"url":"https://github.com/lmammino/ghost2hexo","last_synced_at":"2025-07-05T23:04:42.986Z","repository":{"id":138310538,"uuid":"63450059","full_name":"lmammino/ghost2hexo","owner":"lmammino","description":"A command line tool to convert Ghost json export to a set of source posts for Hexo","archived":false,"fork":false,"pushed_at":"2019-01-22T03:20:22.000Z","size":56,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-09T00:57:16.953Z","etag":null,"topics":["blog","blogging","conversion","conversions","ghost","hexo","import","importer","migration"],"latest_commit_sha":null,"homepage":"https://lmammino.github.io/ghost2hexo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lmammino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-15T20:45:26.000Z","updated_at":"2023-09-13T13:02:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"767328f3-b97d-4b5c-aa2a-85a1f7336821","html_url":"https://github.com/lmammino/ghost2hexo","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/lmammino/ghost2hexo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fghost2hexo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fghost2hexo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fghost2hexo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fghost2hexo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmammino","download_url":"https://codeload.github.com/lmammino/ghost2hexo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fghost2hexo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259981385,"owners_count":22941146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","blogging","conversion","conversions","ghost","hexo","import","importer","migration"],"created_at":"2024-10-03T15:42:12.091Z","updated_at":"2025-06-15T13:04:58.179Z","avatar_url":"https://github.com/lmammino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghost2hexo\n\nA quick'n'dirty command line tool written in Node.js to convert\n[Ghost](https://ghost.org) JSON exported posts into a set of source posts for\n[Hexo](https://hexo.io)... Long story short, an helper to migrate from Ghost to\nHexo (and probably other static website publishing platforms).\n\n[![npm version](https://badge.fury.io/js/ghost2hexo.svg)](https://badge.fury.io/js/ghost2hexo)\n[![CircleCI](https://circleci.com/gh/lmammino/ghost2hexo.svg?style=shield)](https://circleci.com/gh/lmammino/ghost2hexo)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\nWith Node.js and Npm installed, as easy as:\n\n```bash\nnpm install -g ghost2hexo\n```\n\n\n## Usage\n\nFrom your terminal of choice:\n\n```bash\nghost2hexo ghost_data.json path/to/hexo/source/_posts\n```\n\nWhere:\n  - `ghost_data.json`: is the file exported from the Ghost admin\n  - `path/to/hexo/source/_posts`: the posts folder of your local Hexo project\n\n\n## Quick migration guide\n\n1. Prepare your Hexo environment (you can follow the official [quick start](https://hexo.io/docs))\n2. Login into your Ghost admin\n3. Go to Settings \u003e Labs and click the blue \"Export\" button (this will download\n  the ghost data JSON file)\n4. Download your images and files from the `contents/images` folder of your ghost installation\n5. Use the `ghost2hexo` command to generate the posts for Hexo\n6. Copy your Ghost images into the your Hexo `sources/contents/images`\n7. Regenerate your static website with `hexo generate`\n\n\n## Contribute\n\nFeel more than welcome to\n[report bugs](https://github.com/lmammino/ghost2hexo/issues) or [propose changes](https://github.com/lmammino/ghost2hexo/pulls).\n\n## License\n\nLicensed under [MIT](https://github.com/lmammino/ghost2hexo/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmammino%2Fghost2hexo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmammino%2Fghost2hexo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmammino%2Fghost2hexo/lists"}