A blog cli tool for twstat development usage.
sudo npm install -g twstat-blog
First of all, go to your taiwanstat.com
repo's root folder and enter the command.
twstatblog
First of all, go to your taiwanstat.com
repo's root folder and enter the command, add watch option, will rebuild only the specific which is modifed.
twstatblog -w
twstatblog init <date> <time> <name>
for example
twstatblog init 2015/08/11 11:10:27 test
this command will extend a new object in blog.json
{
"title": "test",
"date": "2015/08/11 11:10:27",
"categories": [
""
],
"tags": [
""
],
"cover": "/assets/article_images/2015-08-11/test-cover.png",
"content": "./posts/2015-08-11-test.md",
"url_name": "test",
"author": "taiwanstat"
},
and also create a new folder for your project, for this example it will create and new folder called 2015-08-11-test.md
in ./posts/
.
md
:
## Title
content
### Subtitle
subcontent