Skip to content
Browse files

Try centering pagination

  • Loading branch information...
1 parent 5dc3cd2 commit f5f3b849991b029e2bd9667ef7d2e65803926323 @neizod neizod committed
Showing with 8 additions and 0 deletions.
  1. +4 −0 _includes/styles.scss
  2. +4 −0 index.html
View
4 _includes/styles.scss
@@ -507,3 +507,7 @@ pre {
padding-left: 0;
}
}
+
+.pagination .disabled {
+ opacity: 0;
+}
View
4 index.html
@@ -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 f5f3b84

Please sign in to comment.
Something went wrong with that request. Please try again.