2.0.0 β€’ Published 4 years ago

md4blog v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

LICENSE Renovate All Contributors Gitmoji code style: prettier


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"
  }
}

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.

License πŸ“„

MIT License