Created
August 23, 2009 20:52
-
-
Save mrflip/173448 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="toggle" id="news"> | |
<!-- following will only be included if there are posts --> | |
{% for t in site.posts %} {% assign has_posts = true %}{% endfor %}{% if has_posts %} | |
<h2>{{ site.gemname | capitalize }} News</h2> | |
<ul class="posts"> | |
{% for post in site.posts %} | |
<li><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a></li> | |
{% endfor %} | |
</ul> | |
{% endif %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment