Browse Source

fix demo cols

pull/803/head
afc163 9 years ago
parent
commit
b87158ccd9
  1. 20
      site/templates/demos.html

20
site/templates/demos.html

@ -10,16 +10,6 @@
</a> </a>
{%- endif %} {%- endif %}
</h2> </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"> <div class="code-boxes">
{%- if post.meta.cols == 1 %} {%- if post.meta.cols == 1 %}
<div class="code-boxes-col-1-1"> <div class="code-boxes-col-1-1">
@ -43,4 +33,14 @@
</div> </div>
{%- endif %} {%- endif %}
</div> </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 %} {%- endif %}

Loading…
Cancel
Save