tonyfast / nsf-goali

A Testing Environment for Mini-Research Sites
tonyfast.com/nsf-goali
1 stars 3 forks source link

Pagination ``page1`` issue #13

Closed tonyfast closed 10 years ago

tonyfast commented 10 years ago

I added Pagination to the site.

There is a case to deal with for /page1 in pagination of Jekyll. The lines in index.html need to be changed according to Rendering Paginated Posts

PaymanSh commented 10 years ago

This is what I think should be added to pagination part to solve the issue with page1

<div class="pagination">
  {% if paginator.previous_page %}
    {% if paginator.pervious_page == 1 %}
      <a href ="{{site.baseurl}}" class="previous"><span class="mega-octicon octicon-chevron-left"></span></a>
    {% else %}
      <a href="{{site.baseurl}}/page{{ paginator.previous_page }}" class="previous"><span class="mega-octicon octicon-chevron-left"></span></a>
tonyfast commented 10 years ago

Resolved by Fixing Edge Case in Jekyll Pagination