From 41f7a0e3639dbe57aafb6e66068bfb62bb4f200e Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 16 May 2015 16:05:22 +0800 Subject: [PATCH] single page update --- static/style.css | 3 ++- theme/templates/layout.html | 54 +++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 27 deletions(-) diff --git a/static/style.css b/static/style.css index 8c35177dff..e14cadc905 100644 --- a/static/style.css +++ b/static/style.css @@ -386,7 +386,8 @@ footer ul li > a { .main-container-center { margin: 0 auto; - padding: 30px 0; + padding-left: 0; + padding-right: 0; width: calc(100% - 80px); height: 100%; } diff --git a/theme/templates/layout.html b/theme/templates/layout.html index a810d49fb1..e821317c13 100644 --- a/theme/templates/layout.html +++ b/theme/templates/layout.html @@ -77,34 +77,36 @@ {%- include "aside.html" %}
{%- else %} -
+
{%- endif %} -
-

- {{ post.title }} - {%- if post.meta.API %} - - - API 使用说明 - +
+

+ {{ post.title }} + {%- if post.meta.API %} + + + API 使用说明 + + {%- endif %} +

+ {{ post.html }} + {%- if post.meta.template === 'component' %} +

组件演示

+
+ 代码加载中... +
+ {%- endif %} -

- {{ post.html }} -

组件演示

-
- 代码加载中... -
-