A Shell-based Ghost Static Generator
-
Have your local Ghost website ready first.
-
Install
wget. For MacOS, simply runbrew install wget. -
Save
gui.shfile in the root directory of your local Ghost website. Modify the# Define urls and httpssection as follows:# Define urls and https from_url=http://localhost:2368 # change this if your local ghost url is different to_url=yourdomain.com # change it to your real domain name to_https=true # set true to enable HTTPS (e.g. GitHub Pages)
-
Give execution permission to it:
chmod +x gui.sh
-
Run it:
./gui.sh
-
Then go to
staticfolder:cd static -
Initiate a new git repo, commit everything here and push to your new GitHub repo:
git init git add . git commit -m "Initial Commit" git remote add origin [email protected]:<your_user_name>/<repo_name>.git git push -u origin master
-
Enable GitHub Pages in settings.