-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pagination template for blog posts
- Loading branch information
1 parent
da0c4a6
commit 811d15a
Showing
2 changed files
with
91 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<!-- Featured | ||
================================================== --> | ||
<section class="featured-posts"> | ||
|
||
<div class="section-title"> | ||
<h2><span>Featured</span></h2> | ||
</div> | ||
|
||
<div class="row listfeaturedtag"> | ||
|
||
{% for post in site.posts %} | ||
|
||
{% if post.featured == true %} | ||
|
||
{% include featuredbox.html %} | ||
|
||
{% endif %} | ||
|
||
{% endfor %} | ||
|
||
</div> | ||
|
||
</section> | ||
|
||
<!-- Posts Index | ||
================================================== --> | ||
{% if paginator.previous_page %} | ||
{% if paginator.previous_page > 0 %} | ||
<div id="jumptopageof"></div> | ||
{% endif %} | ||
{% endif %} | ||
|
||
<section class="recent-posts row"> | ||
|
||
<div class="col-sm-4 left-sidebar"> | ||
{% include sidebar.html %} | ||
</div> | ||
|
||
<div class="col-sm-8"> | ||
|
||
<div class="section-title"> | ||
<h2><span>All Stories</span></h2> | ||
</div> | ||
|
||
<div class="masonrygrid row listrecent"> | ||
|
||
{% for post in paginator.posts %} | ||
|
||
{% unless post.featured == true %} | ||
|
||
{% include postbox.html %} | ||
|
||
{% endunless %} | ||
|
||
{% endfor %} | ||
|
||
</div> | ||
|
||
<!-- Pagination --> | ||
<div class="bottompagination"> | ||
|
||
<span class="navigation" role="navigation"> | ||
|
||
{% include pagination.html basepath="blog/"%} | ||
|
||
</span> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</section> |