{% if paginator.posts or page.autogen %}
  {% for post in paginator.posts %}
    {% include entry.html %}
  {% endfor %}

  <nav class="pagination">
    <ul>
      {% if paginator.previous_page %}
        <li>
          <a href="{{ paginator.previous_page_path | relative_url }}" class="newer-posts">← newer posts</a>
        </li>
      {% endif %}
      {% if page.autogen %}
        <li>page {{ page.pagination_info.curr_page }} of {{ page.pagination_info.total_pages }}</li>
      {% else %}
        <li>pa