使用markdown来创建你的网页
npm install wooden -g
wooden create [dir]
这个命名会生成一个空的项目,它包含了四个文件:
_post
你的markdown文件放在这里_layout
布局文件,在这里我使用的jadeassets
静态资源
现在你可以在_post里使用markdown写你的文章。
wooden prevew
这个命令会开启express来预览你的网站
wooden build [dir] [--output target]
当你完成写作并使用以上命名,就可以来更新或者生成为html文件,现在把它放到你的静态服务器上去吧!
其中,contact支持twitter,fb等其他社交信息
{
"name" : "hacke2's blog",
"contact" : {
"github" : "https://github.com/hacke2",
"Weibo" : "http://weibo.com/p/1005052330269092/",
"mail" : "[email protected]"
}
}
当然,markdown非常简单,相信你已经会了,本系统也支持 <!--more-->
关键字,用来在首页显示摘要
---
title : hello, wooden
---
## abstract
<!-- more-->
>This is quote
article
- 加入评论系统能够
- 分页功能
use markdown to build a static web page
npm install wooden -g
wooden create [dir]
This command can create empty project, It contains four folders:
_post
your markdown file_layout
layout file by jadeassets
static resources
you can user markdown to write your article in "_post" folders now。
wooden prevew
It is Command will open web server by express.
wooden build [dir] [--output target]
if you done your markdown, you make it to html.you can sent to your static server(e.g github page)
contact can spport twitter,fb..
{
"name" : "hacke2's blog",
"contact" : {
"github" : "https://github.com/hacke2",
"Weibo" : "http://weibo.com/p/1005052330269092/",
"mail" : "[email protected]"
}
}
I believe you learned how user markdown to write article, you can user <!--more-->
for index page Where can show abstract.
---
title : hello, wooden
---
## abstract
<!-- more-->
>This is quote
article
- comment system
- Paging