Skip to content

Instantly share code, notes, and snippets.

@speedmax
Created November 26, 2008 09:22
Show Gist options
  • Save speedmax/29334 to your computer and use it in GitHub Desktop.
Save speedmax/29334 to your computer and use it in GitHub Desktop.
Beautiful template and data API
<div class="good-evans span-8 last" style="float:right">
{{ '/img/goodevans.png'|image_tag }}
<ul>
{% for article in site.articles_tagged.good-evans %}
<li>{{ article.title | links_to article.url }}</li>
{% endfor %}
</ul>
</div>
<div class="latest-buzz span-10">
{{ '/img/latest_buzz.png'|image_tag }}
<ul>
{% for article in site.articles_tagged.featured %}
{% if loop.first %}
<li class="featured" style="list-style:none">
<h2>{{ article.title }}</h2>
<p>
{{ article.excerpt }} {{ "« Read more"|links_to article.url }}
</p>
{{ '/img/past_buzz.png'|image_tag }}
</li>
{% else %}
<li>{{ article.title|links_to article.url }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment