Skip to content

Commit

Permalink
fix Simpleyyt#5 prev post link not show
Browse files Browse the repository at this point in the history
  • Loading branch information
Simpleyyt committed Aug 10, 2017
1 parent 09ae295 commit 3ae5f74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _includes/_macro/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
{% endunless %}

{% unless is_index %}
{% if post.prev or post.next %}
{% if post.previous or post.next %}
<div class="post-nav">
<div class="post-nav-next post-nav-item">
{% if post.next %}
Expand All @@ -395,9 +395,9 @@
<span class="post-nav-divider"></span>

<div class="post-nav-prev post-nav-item">
{% if post.prev %}
<a href="{{ post.prev.url | relative_url }}" rel="prev" title="{{ post.prev.title }}">
{{ post.prev.title }} <i class="fa fa-chevron-right"></i>
{% if post.previous %}
<a href="{{ post.previous.url | relative_url }}" rel="prev" title="{{ post.previous.title }}">
{{ post.previous.title }} <i class="fa fa-chevron-right"></i>
</a>
{% endif %}
</div>
Expand Down

0 comments on commit 3ae5f74

Please sign in to comment.