Socket
Book a DemoInstallSign in
Socket

shock

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shock

A static blog manager for gh-pages.

0.8.3
latest
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Shock

Shock is a simple static blog compiler.

Usage

  • Begin: (Install node and npm, then)* run npm install -g shock
  • Write: Save content under /content as HTML or Markdown. Run shock newpost to register that post in index.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, leave author and date blank for reasonable defaults to be filled in.

Keywords

static

FAQs

Package last updated on 05 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.