ghost-static icon indicating copy to clipboard operation
ghost-static copied to clipboard

Convert your Ghost blog to a static website

Unmaintained

This was a small experiment to build a static site from the default Ghost frontend. Since Ghost can be used as a headless CMS, this package is not particularly useful.

Ghost static

npm version dep

Convert your dynamic Ghost blog to a static website.

Works without any external dependency, tested on Windows and Raspbian, with Ghost 2 and the default Casper theme.

Installation

$ npm install -g ghost-static

Usage

$ ghost-static -h

Usage: ghost-static [options] [command]

Commands:
  help     Display help
  version  Display version

Options:
  -d, --dest [value]     The folder where the static files will be downloaded (defaults to "static")
  -h, --help             Output usage information
  -p, --publish [value]  The url that will point to the static Ghost site (defaults to "http://localhost:8080")
  -s, --source [value]   The current running instance of Ghost. This url will be replaced by the [publish] one. (defaults to "http://localhost:2368")
  -t, --to-replace       List of comma-separated urls, if you want to replace other URLs than [source] by [publish]. (defaults to null)
  -v, --version          Output the version number

Issues

If your Ghost setup or theme doesn't work, fill a bug and I'll see what I can do.

Requirements

Node LTS