This commit is contained in:
afc163 2015-05-07 19:54:54 +08:00
parent c5e67da18f
commit 0693ae7b86
5 changed files with 16 additions and 13 deletions

View File

@ -12,5 +12,10 @@
},
"dependencies": {
"nico": "*"
},
"scripts": {
"build": "nico build",
"start": "nico server",
"clean": "rm -rf dist"
}
}

View File

@ -3,3 +3,7 @@
---
123
```html
<button>按钮</button>
```

View File

@ -1,13 +0,0 @@
{% extends "layout.html" %}
{% block main -%}
<div class="main">
<div class="main-box" id="main">
<div class="banner-box">
<div id="bannerAnim"></div>
<div class="banner-img"></div>
<div class="banner-text"></div>
</div>
</div>
</div>
{%- endblock %}

3
src/index.md Normal file
View File

@ -0,0 +1,3 @@
# home
---

View File

@ -5,6 +5,10 @@ exports.reader = function(post) {
} else {
post.template = post.meta.template = (post.meta.template || 'page');
}
if (filename === 'readme.md') {
post.filename = post.meta.filename = 'index';
post.meta.category = 'docs';
}
if (!post.meta.category) {
post.meta.category = post.meta.directory;
}