Previous

Grab the previous entries relative to current entry in a Collection.


This Tag functions the same way as the collection:next tag, but in the opposite direction.

{{ collection:previous in="blog" as="posts" limit="2" sort="date:asc" }}

  {{ if no_results }}
    No more posts to read!
  {{ /if }}

  {{ posts }}
    <div class="post">
      <a href="{{ url }}">{{ title }}</a>
    </div>
  {{ /posts }}

{{ /collection:previous }}
Last modified on September 11, 2016