Ghost CMS is very easy to use, but the deployment overhead (maintaining db, ghost version, updates and etc) might be too much for some. Luckily, there’s a way to convert a Ghost site to static pages, which you can later host on Github pages or something similar.
Setup
- static site engine: Hugo
- a Ghost instance
Usage
- Install https://github.com/Fried-Chicken/ghost-static-site-generator
cd
tostatic
directory in your Hugo folder- run
gssg --domain ${YOUR_GHOST_INSTANCE_URL} --dest posts --url ${YOUR_STATIC_SITE_DOMAIN_WITHOUT_TRAILING_SLASH} --subDir posts
- Update your hugo config to link to the above folder:
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "/posts"
All done! πππ