From 97f8d04623ac0412573e82ff1f9467d99e86bf16 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 7 May 2015 21:01:15 +0800 Subject: [PATCH] update theme --- package.json | 2 +- theme/templates/layout.html | 8 +++++--- theme/templates/page.html | 6 ------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index a34a98e42d..a8edf239e4 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "scripts": { "build": "npm run clean && nico build", - "start": "nico server", + "start": "npm run clean && nico server", "clean": "rm -rf _site" } } diff --git a/theme/templates/layout.html b/theme/templates/layout.html index ed5a8cb78c..0ac192ca8c 100644 --- a/theme/templates/layout.html +++ b/theme/templates/layout.html @@ -38,8 +38,6 @@ - - {%- block main %} {%- if post.filename === 'index' %}
@@ -50,8 +48,12 @@
+ {%- else %} +
+

{{ post.title }}

+ {{ post.html }} +
{%- endif %} - {% endblock -%}