update theme

This commit is contained in:
afc163 2015-05-07 21:01:15 +08:00
parent 08900df2fb
commit 97f8d04623
3 changed files with 6 additions and 10 deletions

View File

@ -15,7 +15,7 @@
},
"scripts": {
"build": "npm run clean && nico build",
"start": "nico server",
"start": "npm run clean && nico server",
"clean": "rm -rf _site"
}
}

View File

@ -38,8 +38,6 @@
</nav>
<div class="nav-phone-icon"></div>
</header>
{%- block main %}
{%- if post.filename === 'index' %}
<div class="main">
<div class="main-box" id="main">
@ -50,8 +48,12 @@
</div>
</div>
</div>
{%- else %}
<article class="markdown">
<h1>{{ post.title }}</h1>
{{ post.html }}
</article>
{%- endif %}
{% endblock -%}
<footer id="footer">
<ul>

View File

@ -2,9 +2,3 @@
{% block title %}{{post.title}} - {{config.site.name}}{% endblock %}
{% block description %}{% if post.summay %}{{post.summary}}{% endif %}{% endblock %}
{% block main -%}
<article class="markdown">
<h1>{{ post.title }}</h1>
{{ post.html }}
</article>
{%- endblock %}