2.1.0 • Published 9 years ago

deadsimplelog v2.1.0

Weekly downloads
6
License
Fair
Repository
github
Last release
9 years ago

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.

2.1.0

9 years ago

2.0.0

9 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

11 years ago

0.3.0

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago