Skip to content

Commit

Permalink
Merge pull request mattvh#278 from tpict/gh-pages
Browse files Browse the repository at this point in the history
Fix hidden posts appearing in blog navigation
  • Loading branch information
mehmandarov authored Jan 29, 2019
2 parents 39e2ecd + 61de693 commit 8c741e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ <h1 class="title">{{ page.title }}</h1>

{% if site.post-advance-links contains page.category %}
<div class="blog-navigation">
{% if page.previous.url %}
{% if page.previous.hidden == false and page.previous.url %}
<a class="prev" href="{{ site.url }}{{ page.previous.url }}">&laquo; {{ page.previous.title }}</a>
{% else %}
<a class="prev"></a>
{% endif %}
{% if page.next.url %}
{% if page.next.hidden == false and page.next.url %}
<a class="next" href="{{ site.url }}{{ page.next.url }}">{{ page.next.title }} &raquo;</a>
{% endif %}
</div>
Expand Down

0 comments on commit 8c741e7

Please sign in to comment.