0.8.3 • Published 4 years ago
shock v0.8.3
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.
0.8.3
4 years ago
0.8.2
4 years ago
0.8.1
4 years ago
0.8.0
5 years ago
0.7.1
5 years ago
0.7.0
5 years ago
0.6.0
5 years ago
0.5.1
8 years ago
0.5.0
9 years ago
0.4.0
9 years ago
0.2.6
9 years ago
0.2.5
9 years ago
0.2.4
9 years ago
0.2.3
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.1
10 years ago
0.0.0
10 years ago