Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created December 16, 2012 13:27
Show Gist options
  • Select an option

  • Save objectivehtml/4307250 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/4307250 to your computer and use it in GitHub Desktop.
<article class="article">
{if segment_3 != url_title}
<h3><a href="/articles/read/{url_title}">{title}</a></h3>
{if:else}
<h1>{title}</h1>
{/if}
{if !segment_3 && segment_2}
{if article_excerpt}
<p>{article_excerpt}</p>
<p><a href="/articles/read/{url_title}" class="button small">Learn More <span class= "icon-arrow-right"></span></a></p>
{if:else}
{article_content}
{/if}
{if:else}
{article_content}
{/if}
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment