Browse Source

update

pull/4/head
afc163 10 years ago
parent
commit
0693ae7b86
  1. 5
      package.json
  2. 4
      src/components/button.md
  3. 13
      src/index.html
  4. 3
      src/index.md
  5. 4
      theme/theme.js

5
package.json

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

4
src/components/button.md

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

13
src/index.html

@ -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

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

4
theme/theme.js

@ -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;
}

Loading…
Cancel
Save