shock
v0.8.3
Published
A static blog manager for gh-pages.
Downloads
106
Readme
Shock
Shock is a simple static blog compiler.
Usage
- 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*
.
*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 page
This can be generated automagically using shock init
.
Hints
- In
shock newpost
, leaveauthor
anddate
blank for reasonable defaults to be filled in.