Skip to content

Instantly share code, notes, and snippets.

@RyanRoberts
Created April 8, 2013 10:15
Show Gist options
  • Save RyanRoberts/5335743 to your computer and use it in GitHub Desktop.
Save RyanRoberts/5335743 to your computer and use it in GitHub Desktop.
{exp:channel:entries channel="articles"}
{if count == 1}<div class="articles">
<h1>Recent Articles</h1>
{/if}
<article>
<h1>{title}</h1>
{body}
</article>
{if count == total_results}</div>{/if}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment