Browse Source

update theme

pull/4/head
afc163 10 years ago
parent
commit
97f8d04623
  1. 2
      package.json
  2. 8
      theme/templates/layout.html
  3. 6
      theme/templates/page.html

2
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"
}
}

8
theme/templates/layout.html

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

6
theme/templates/page.html

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

Loading…
Cancel
Save