提交 409173ee 编辑于 作者: Andrew Banchich's avatar Andrew Banchich
浏览文件

adds featured toggle

上级 fe9881b5
<section id="one" class="tiles">
{% for post in site.posts limit:site.tiles-count %}
{% if site.tiles-source == 'posts' %}
{% if post.featured == 'yes' %}
<article>
<span class="image">
<img src="{{ post.image }}" alt="" />
......@@ -11,10 +12,12 @@
</header>
</article>
{% endif %}
{% endif %}
{% endfor %}
{% for page in site.pages limit:site.tiles-count %}
{% if site.tiles-source == 'pages' %}
<article>
{% if page.featured == 'yes'}
<article>
<span class="image">
<img src="{{ page.image }}" alt="" />
</span>
......@@ -24,5 +27,6 @@
</header>
</article>
{% endif %}
{% endif %}
{% endfor %}
</section>
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册