0.0.2 • Published 10 years ago
twstat-blog v0.0.2
twstat blog cli tool
A blog cli tool for twstat development usage.
Install
sudo npm install -g twstat-blogBuild project
First of all, go to your taiwanstat.com repo's root folder and enter the command.
twstatblogwatch project
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 -wInit your project
twstatblog init <date> <time> <name>for example
twstatblog init 2015/08/11 11:10:27 testthis 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
subcontent0.0.2
10 years ago