forked from reflectoring/reflectoring.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added pagination * fixed link label
- Loading branch information
Showing
7 changed files
with
49 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* ========================================================================== | ||
Tiles | ||
========================================================================== */ | ||
|
||
.pagination { | ||
clear: both; | ||
} | ||
|
||
.page-number { | ||
margin-right: 20px; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
layout: archive | ||
title: "Latest Posts" | ||
date: 2016-11-26 | ||
modified: | ||
tags: [reflectoring, posts, blog, software, engineering, programming, java] | ||
image: | ||
feature: | ||
teaser: archive.jpg | ||
--- | ||
|
||
<div class="tiles"> | ||
{% for post in paginator.posts %} | ||
{% include post-grid.html %} | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="pagination"> | ||
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span> | ||
{% if paginator.previous_page %} | ||
<a href="{{ paginator.previous_page_path }}" class="btn previous">Previous Page</a> | ||
{% else %} | ||
<span class="btn previous">Previous Page</span> | ||
{% endif %} | ||
{% if paginator.next_page %} | ||
<a href="{{ paginator.next_page_path }}" class="btn next">Next Page</a> | ||
{% else %} | ||
<span class="btn next">Next Page</span> | ||
{% endif %} | ||
</div> |