https://github.com/timatooth/ghost2zola
Export Ghost Blog content to Zola markdown
https://github.com/timatooth/ghost2zola
Last synced: about 1 month ago
JSON representation
Export Ghost Blog content to Zola markdown
- Host: GitHub
- URL: https://github.com/timatooth/ghost2zola
- Owner: timatooth
- Created: 2020-05-10T13:20:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T03:02:36.000Z (about 6 years ago)
- Last Synced: 2025-12-27T16:11:30.759Z (5 months ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ghost2zola
> Exports posts from Ghost Conntent API (v3) to Zola markdown.
This project is minimal effort:
* Converts Ghost Posts HTML to markdown
* Adds frontmatter to posts
* Replaces localhost image links and coverts to a `resize_image` shortcode for Zola to use it's image resizer from the original Ghost `content/images`.
#### Requirements
* a Ghost instance running at http://localhost:2368 with your content.
* a Ghost content API key (get one in *Integrations >> Custom Integrations >> Add Custom Integration*)
#### Usage
1. Run your Ghost site locally
2. `export GHOST_CONTENT_API_KEY=886c434742d9b11f0054a3af62` (changeme)
3. `cargo run`
4. Copy over content in `/gen` into your existing Zola site structure
5. Copy over `/var/www/ghost/content/images/*` to the right place in Zola
###### Maybe later
- [ ] Generate a Zola skeleton site + shortcodes to run `zola serve` straight away.
- [ ] Import pages
- [ ] Copy images into `content/`
- [ ] Use the Admin API to pull in unpublished drafts too
- [ ] Taxonomy
- [ ] Automate for CI