Blog Archive

Author: Webvanta

The blog archive page, which skips the first 5 articles (presumed to be shown on the main blog page—if you change that number on the main page change it here too) and shows all older posts, paginated into sets of 10 posts.

If you want to show full posts instead of excerpts, change w:description to w:body and remove the Continue Reading link.

<p><a href='/bp/blog'>Blog</a></p>
<h1>Blog Archive</h1>
<w:kb:item>
  <w:paginate  by='published_at desc' limit='10' start='6' page='auto' type='Posts'>
    <!-- display pagination if there are more than  10 posts -->
    <w:pagination_widget  />
    <w:each >
      <div class='blog_article  clearfix'>
        <!--
          is the  icon field blank? if not display the thumb rendition of the icon.
          renditions  are defined in 'design > config settings' under 'images >  image.thumbnail.settings'
        -->
        <w:unless condition='icon.blank?'><img src="<w:icon rendition='thumb' />" class="listing-thumb" alt="" /></w:unless>
        <h3 class='article_title'><a href="<w:path  url='post' />"><w:name /></a></h3>
         <p class='byline'>Posted <w:published_at  format='%B %e, %Y' />
         <w:unless condition='author.blank?'>by <w:author /> </w:unless></p>
         <w:description />        
        <w:snippet name='post_categories_list' />
         <p><a href='<w:path url="/post" />'>Continue  reading…</a></p>
      </div>
    </w:each>
  </w:paginate>
</w:kb:item>