This commit is contained in:
afc163
2015-05-07 20:54:19 +08:00
parent 8b32a331d9
commit 08900df2fb
11 changed files with 16 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
{
"source": "src",
"source": ".",
"output": "_site",
"theme": "theme",
"sitename": "Ant Design",

View File

@@ -16,7 +16,6 @@
"scripts": {
"build": "npm run clean && nico build",
"start": "nico server",
"clean": "rm -rf _site",
"deploy": "npm run build && git checkout gh-pages && git merge master && git push origin gh-pages && git checkout master"
"clean": "rm -rf _site"
}
}

View File

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

View File

@@ -39,7 +39,19 @@
<div class="nav-phone-icon"></div>
</header>
{%- block main %}{% endblock -%}
{%- block main %}
{%- if post.filename === 'index' %}
<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>
{%- endif %}
{% endblock -%}
<footer id="footer">
<ul>

View File

@@ -1,6 +1,6 @@
exports.reader = function(post) {
var filename = post.meta.filepath.toLowerCase();
if (post.meta.filepath.indexOf('components') >= 0) {
if (filename.indexOf('components') >= 0) {
post.template = post.meta.template = 'component';
} else {
post.template = post.meta.template = (post.meta.template || 'page');