Skip to content

Instantly share code, notes, and snippets.

@0xgdr
Created December 15, 2012 20:44
Show Gist options
  • Select an option

  • Save 0xgdr/4299014 to your computer and use it in GitHub Desktop.

Select an option

Save 0xgdr/4299014 to your computer and use it in GitHub Desktop.
{embed="_wrappers/_main"}
{exp:stash:set name='bodyId'}{segment_1}{/exp:stash:set}
{exp:stash:set parse_tags="yes"}
{stash:mainContent}
<h2>Articles</h2>
<ol class="posts">
{exp:channel:entries
channel="news_articles"
limit="5"
paginate="bottom"
disable="{gv_disable}"
}
<li class="post">
<h3><a href="{url_title_path='article'}">{title}</a></h3>
{introduction}
<p class="more"><a href="{url_title_path='article'}">Continue Reading &#187;</a></p>
</li>
{paginate}
{if {total_pages} > 1}
{stash:pagination}
<div class="pagination">{pagination_links}</div>
{/stash:pagination}
{/paginate}
{/exp:channel:entries}
</ol>
{/stash:mainContent}
{/exp:stash:set}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment