shock
v0.8.3
Published
A static blog manager for gh-pages.
Readme
Shock
Shock is a simple static blog compiler.
Usage
- Begin: (Install
nodeandnpm, then)* runnpm install -g shock - Write: Save content under
/contentas HTML or Markdown. Runshock newpostto register that post inindex.json. - Publish: Run
shock compileto compile a static website, which you can then host on anything that serves static files. - Customize: Edit files under
/templatesto customize your blog. - Facepalm: Quickly unregister a post with
shock rm *name*.
*www.nodejs.org
Basic Structure (reference)
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 pageThis can be generated automagically using shock init.
Hints
- In
shock newpost, leaveauthoranddateblank for reasonable defaults to be filled in.
