操场 ≌ Playground
Site Status
Dev Mode |
Extra CSS |
JavaScript |
OFF |
ALLOWED |
ALLOWED |
Playground Status
Comments |
Math |
PSWP |
jQuery |
OFF |
OFF |
OFF |
ON |
Last build date: Sat, 10 Oct 2015 12:21:53 +0000
Finished Experiments:
Better Related Posts
{% assign hasSimilar = '' %}
{% for post in site.related_posts %}
{% assign postHasSimilar = false %}
{% for tag in post.tags %}
{% for thisTag in page.tags %}
{% if postHasSimilar == false and hasSimilar.size < 6 and post != page and tag == thisTag %}
{% if hasSimilar.size == 0 %}
<h4>Similar Posts</h4>
<ul>
{% endif %}
<li class="relatedPost">
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}
{% if post.series %}
(Series: {{ post.series }})
{% endif %}
</a>
</li>
{% capture hasSimilar %}{{ hasSimilar }}*{% endcapture %}
{% assign postHasSimilar = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% if hasSimilar.size > 0 %}
</ul>
{% endif %}
{% for gallery in site.data.galleries %}
- [{{ gallery.description }}]({{ site.baseurl }}/{{ gallery.id }})
{% endfor %}
Show
A dummy heading