Skip to content

Instantly share code, notes, and snippets.

@mrflip
Created August 23, 2009 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrflip/173448 to your computer and use it in GitHub Desktop.
Save mrflip/173448 to your computer and use it in GitHub Desktop.
<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> &raquo; <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