Browse Source

single page update

pull/4/head
afc163 10 years ago
parent
commit
41f7a0e363
  1. 3
      static/style.css
  2. 4
      theme/templates/layout.html

3
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%;
}

4
theme/templates/layout.html

@ -77,7 +77,7 @@
{%- include "aside.html" %}
<section class="main-container">
{%- else %}
<section class="main-container-center">
<section class="main-container main-container-center">
{%- endif %}
<article class="markdown">
<h1>
@ -90,6 +90,7 @@
{%- endif %}
</h1>
{{ post.html }}
{%- if post.meta.template === 'component' %}
<h2>组件演示</h2>
<div id="code-boxes">
代码加载中...
@ -105,6 +106,7 @@
document.getElementById('code-boxes')
);
</script>
{%- endif %}
</article>
</section>
</div>

Loading…
Cancel
Save