Created
March 24, 2016 19:38
-
-
Save jacobmischka/4d45b4c76614a0fbfc17 to your computer and use it in GitHub Desktop.
/news/index.html
This file contains hidden or 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
--- | |
layout: page | |
title: News | |
header: true | |
--- | |
<ul class="post-list"> | |
{% for post in paginator.posts %} | |
<li class="post-list-item"> | |
<h2> | |
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> | |
</h2> | |
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</span> | |
</li> | |
{% endfor %} | |
<div class="pagination"> | |
{% if paginator.previous_page %} | |
<a class="previous" href="{{ paginator.previous_page_path }}">Previous</a> | |
{% else %} | |
<span class="previous">Previous</span> | |
{% endif %} | |
<span class="page-number">Page: <span>{{ paginator.page }}</span> of <span>{{ paginator.total_pages }}</span></span> | |
{% if paginator.next_page %} | |
<a class="next" href="{{ paginator.next_page_path }}">Next</a> | |
{% else %} | |
<span class="next">Next</span> | |
{% endif %} | |
</div> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment