2.0.0 β’ Published 4 years ago
md4blog v2.0.0
Usage π§°
Install
npm i md4blog -D
yarn add md4blog -D
Commands
generate
md4blog generate
Convert .md
files in ${postsFolder}
,
${the-posts-id}.html
map.json
${the-posts-id}/meta.json
${the-posts-id}/image01.png
(If needed)
into ${distFolder}
daily
md4blog daily
Create Daily Reports.
For Example, output path is like ${outputFolder}/2019/10/18/.md
Config
Support .blogrc
, .blogrc.json
, .blogrc.yml
... (cosmiconfig)
Default
{
"toc": "toc",
"postsFolder": "posts",
"distFolder": "dist",
"daily": {
"outputFolder": "daily",
"tag": "daily",
"titleTemplate": "Daily : yyyy/MM/dd"
}
}
- toc is following by remark-doc
- daily.titleTemplate supports date-fns/format
Contributors π₯
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Donations π΅
If you make a donation, I will add to the Contributors.