Shock is a simple static blog compiler.
- Begin: (Install
node
andnpm
, then)* runnpm install -g shock
- Write: Save content under
/content
as HTML or Markdown. Runshock newpost
to register that post inindex.json
. - Publish: Run
shock compile
to compile a static website, which you can then host on anything that serves static files. - Customize: Edit files under
/templates
to customize your blog. - Facepalm: Quickly unregister a post with
shock rm *name*
.
A Shock blog consists of the following simple directory structure:
.
├── content
│ ├── post1.html
│ └── post2.html
├── index.json
├── static
│ ├── some.css
│ └── more.js
└── templates
├── 404.html # 404 page
├── footer.html # footer (convenient for copyright...)
├── header.html # header
├── home.html # index.html = homepage (list posts here)
└── post.html # actual post page
This can be generated automagically using shock init
.
- In
shock newpost
, leaveauthor
anddate
blank for reasonable defaults to be filled in.