fix demo cols

This commit is contained in:
afc163 2016-01-03 01:35:40 +08:00
parent 6cfc8be796
commit b87158ccd9

View File

@ -10,16 +10,6 @@
</a>
{%- endif %}
</h2>
<ul class="demos-anchor">
{%- for item in items %}
{%- set post = item.meta.filepath|parsePost %}
<li>
<a title="{{ post.title }}" href="#{{post.meta.id|removeCodeBoxIdPrefix}}">
<span>{{ post.title }}</span>
</a>
</li>
{%- endfor %}
</ul>
<div class="code-boxes">
{%- if post.meta.cols == 1 %}
<div class="code-boxes-col-1-1">
@ -43,4 +33,14 @@
</div>
{%- endif %}
</div>
<ul class="demos-anchor">
{%- for item in items %}
{%- set post = item.meta.filepath|parsePost %}
<li>
<a title="{{ post.title }}" href="#{{post.meta.id|removeCodeBoxIdPrefix}}">
<span>{{ post.title }}</span>
</a>
</li>
{%- endfor %}
</ul>
{%- endif %}