-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
|
||
<nav class="pagination"> | ||
{% if paginator.previous_page %} | ||
|
||
{% if paginator.previous_page == 1 %} | ||
<a href="/">Prev</a> | ||
{% else %} | ||
<a href="/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="/">1</a> | ||
{% endif %} | ||
|
||
{% for count in (2..paginator.total_pages) %} | ||
|
||
{% if count == paginator.page %} | ||
<span class="active">{{ count }}</span> | ||
{% else %} | ||
<a href="/page{{ count }}">{{ count }}</a> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% if paginator.next_page %} | ||
<a href="/page{{ paginator.next_page }}">Next</a> | ||
{% else %} | ||
<span class="disabled">Next</span> | ||
{% endif %} | ||
</nav> <!-- End Section Pagination --> | ||
<div class="page-navigation"> | ||
<nav class="navigation" role="navigation"> | ||
<h2 class="screen-reader-text">Page navigation</h2> | ||
<div class="nav-links"> | ||
<div class="row"> | ||
<!-- Get Previous Page --> | ||
<div class="col-md-4 prev-page"> | ||
{% if paginator.previous_page %} | ||
<a href="{{ paginator.previous_page_path }}"> | ||
<span class="next-prev-text"> | ||
<i class="fa fa-angle-left"></i>PREVIOUS | ||
</span><br> | ||
</a> | ||
{% endif %} | ||
</div> | ||
<div class="col-md-4 page_number"> | ||
Page: {{ paginator.page }} of {{ paginator.total_pages }} | ||
</div> | ||
<!-- Get Next Page --> | ||
<div class="col-md-4 next-page"> | ||
{% if paginator.next_page %} | ||
<a href="{{ paginator.next_page_path }}"> | ||
<span class="next-prev-text"> | ||
NEXT<i class="fa fa-angle-right"></i> | ||
</span><br> | ||
</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div><!-- .nav-links --> | ||
</nav><!-- .navigation--> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
<div class="post-navigation"> | ||
<nav class="navigation" role="navigation"> | ||
<h2 class="screen-reader-text">Post navigation</h2> | ||
<div class="nav-links"> | ||
<div class="row"> | ||
<!-- Get Next Post --> | ||
<div class="col-md-6 next-post"> | ||
{% if page.next.url %} | ||
<a href="{{ page.next.url | prepend: site.baseurl }}"> | ||
<span class="next-prev-text"> | ||
<i class="fa fa-angle-left"></i>NEXT | ||
</span><br> | ||
{{ page.next.title }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
|
||
<!-- Get Previous Post --> | ||
<div class="col-md-6 prev-post"> | ||
{% if page.previous.url %} | ||
<a href="{{ page.previous.url | prepend: site.baseurl }}"> | ||
<span class="next-prev-text"> | ||
PREVIOUS<i class="fa fa-angle-right"></i> | ||
</span><br> | ||
{{ page.previous.title }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div><!-- .nav-links --> | ||
</nav><!-- .navigation--> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,4 @@ | |
</div> | ||
</div> | ||
|
||
{% include pagination.html %} | ||
|
||
{% include footer.html %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters