Nybble Processing Mainframe
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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.

Keywords

none

install

npm i deadsimplelog

Downloadsweekly downloads

5

version

2.1.0

license

Fair

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar