Skip to content
Permalink
Browse files

Merge pull request #8 from neizod/center-pagination

Try centering pagination
  • Loading branch information
ageitgey committed Mar 18, 2016
2 parents d960d96 + f5f3b84 commit edcacaa1cee3eaf77bb536552c8e5e10723f24e5
Showing with 8 additions and 0 deletions.
  1. +4 −0 _includes/styles.scss
  2. +4 −0 index.html
@@ -507,3 +507,7 @@ pre {
padding-left: 0;
}
}

.pagination .disabled {
opacity: 0;
}
@@ -30,6 +30,8 @@ <h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}
<nav class="pagination" role="navigation">
{% if paginator.next_page %}
<a class="newer-posts" href="/page{{paginator.next_page}}">&larr; Older posts</a>
{% else %}
<a class="newer-posts disabled">&larr; Older posts</a>
{% endif %}
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.previous_page %}
@@ -38,6 +40,8 @@ <h2 class="post-title" itemprop="name"><a href="{{ site.baseurl }}{{ post.url }}
{% else %}
<a class="older-posts" href="/page{{paginator.previous_page}}">Newer posts &rarr;</a>
{% endif %}
{% else %}
<a class="older-posts disabled">Newer posts &rarr;</a>
{% endif %}
</nav>

0 comments on commit edcacaa

Please sign in to comment.
You can’t perform that action at this time.