2.0.0 β’ Published 6 years ago
md4blog v2.0.0
Usage π§°
Install
npm i md4blog -Dyarn add md4blog -DCommands
generate
md4blog generateConvert .md files in ${postsFolder},
${the-posts-id}.htmlmap.json${the-posts-id}/meta.json${the-posts-id}/image01.png(If needed)
into ${distFolder}
daily
md4blog dailyCreate 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.