Skip to content

Commit

Permalink
do not show empty "docs-prevnext" div on single page
Browse files Browse the repository at this point in the history
to remove additional necessary spacing between content and footer
  • Loading branch information
Simek committed Feb 24, 2015
1 parent 95206fe commit f785dd0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/_layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ <h1>{{ page.title }}</h1>
<div class="subHeader">{{ page.description }}</div>
{{ content }}

<div class="docs-prevnext">
{% if page.prev %}
<a class="docs-prev" href="/react/docs/{{ page.prev }}">&larr; Prev</a>
{% endif %}
{% if page.next %}
<a class="docs-next" href="/react/docs/{{ page.next }}">Next &rarr;</a>
{% endif %}
</div>
{% if page.prev or page.next %}
<div class="docs-prevnext">
{% if page.prev %}
<a class="docs-prev" href="/react/docs/{{ page.prev }}">&larr; Prev</a>
{% endif %}
{% if page.next %}
<a class="docs-next" href="/react/docs/{{ page.next }}">Next &rarr;</a>
{% endif %}
</div>
{% endif %}
</div>
</section>

0 comments on commit f785dd0

Please sign in to comment.