deadsimplelog

2.1.0 • Public • Published

logo

deadsimplelog

Configless static blog generator.
Reads .md files from the current directory and generates a blog out of it into html/.

Usage

Install it:

$ npm install -g deadsimplelog

Then run it on the desired folder:

$ deadsimplelog

Timestamps and git

When using a git repository, you can change the file modification date to the author date of the git commit that created the file with the script(s) below.

Linux:

for article in *; do touch -d "$(git log --follow --format=%aD -- "$article" | tail -1)" "$article"; done;

Mac:

for article in *; do touch -t "$(date -r "$(git log --follow --format=%at -- "$article" | tail -1)" "+%Y%m%d%H%M.%S")" "$article"; done;

Sample output

My blog.

/deadsimplelog/

    Package Sidebar

    Install

    npm i deadsimplelog

    Weekly Downloads

    2

    Version

    2.1.0

    License

    Fair

    Last publish

    Collaborators

    • talles