0.8.3 • Published 4 years ago

shock v0.8.3

Weekly downloads
4
License
MIT
Repository
-
Last release
4 years ago

Shock

Shock is a simple static blog compiler.

Usage

  1. Begin: (Install node and npm, then)* run npm install -g shock
  2. Write: Save content under /content as HTML or Markdown. Run shock newpost to register that post in index.json.
  3. Publish: Run shock compile to compile a static website, which you can then host on anything that serves static files.
  4. Customize: Edit files under /templates to customize your blog.
  5. 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, leave author and date 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