---
layout: paginator
pagination:
  enabled: true
  collection: posts
---

{% for post in paginator.posts %}
<h4>{{ post.post_title }}: {{ post.post_subtitle }}</h4>
<h4>{{ post.date | date_to_long_string }}</h4>
<p>{{ post.excerpt | strip_html }}</p>
<a href="/blog{{ post.url }}">Read More</a>
</p>
{% endfor %}

{% if paginator.previous_page %}
  {% if paginator.previous_page == 1 %}
    <a href="/blog/index.html">Prev</a> |
  {% else %}
    <a href="/blog/page{{ paginator.previous_page }}">Prev</a> |
  {% endif %}
{% else %}
  <span class="disabled">Prev |</span>
{% endif %}

{% if paginator.page == 1 %}
  <span class="active">1</span> |
{% else %}
  <a href="/blog/index.html">1</a> |
{% endif %}

{% for count in (2..paginator.total_pages) %}
  {% if count == paginator.page %}
    {{ count }} |
  {% endif %}
{% endfor %}

{% if paginator.next_page %}
  <a href="/blog/page{{ paginator.next_page }}">Next</a>
{% else %}
  <span class="disabled">Next</span>
{% endif %}
</ul>
---
layout: paginator
pagination:
  enabled: true
  collection: posts
---

{% for post in paginator.posts %}
<h4>{{ post.post_title }}: {{ post.post_subtitle }}</h4>
<h4>{{ post.date | date_to_long_string }}</h4>
<p>{{ post.excerpt | strip_html }}</p>
<a href="{{ post.url }}">Read More</a>
</p>
{% endfor %}

{% if paginator.previous_page %}
  {% if paginator.previous_page == 1 %}
    <a href="/blog/index.html">Prev</a> |
  {% else %}
    <a href="/blog/page{{ paginator.previous_page }}">Prev</a> |
  {% endif %}
{% else %}
  <span class="disabled">Prev |</span>
{% endif %}

{% if paginator.page == 1 %}
  <span class="active">1</span> |
{% else %}
  <a href="/blog/index.html">1</a> |
{% endif %}

{% for count in (2..paginator.total_pages) %}
  {% if count == paginator.page %}
    {{ count }} |
  {% endif %}
{% endfor %}

{% if paginator.next_page %}
  <a href="/blog/page{{ paginator.next_page }}">Next</a>
{% else %}
  <span class="disabled">Next</span>
{% endif %}
</ul>
Fix issue with blog post links being broken
Fix issue with blog post links being broken
