Browse Source

do not show empty "docs-prevnext" div on single page

to remove additional necessary spacing between content and footer
main
Bartosz Kaszubowski 10 years ago
parent
commit
a2f2a7ed14
  1. 18
      _layouts/single.html

18
_layouts/single.html

@ -8,13 +8,15 @@ layout: default
<div class="subHeader">{{ page.description }}</div> <div class="subHeader">{{ page.description }}</div>
{{ content }} {{ content }}
<div class="docs-prevnext"> {% if page.prev or page.next %}
{% if page.prev %} <div class="docs-prevnext">
<a class="docs-prev" href="/react/docs/{{ page.prev }}">&larr; Prev</a> {% if page.prev %}
{% endif %} <a class="docs-prev" href="/react/docs/{{ page.prev }}">&larr; Prev</a>
{% if page.next %} {% endif %}
<a class="docs-next" href="/react/docs/{{ page.next }}">Next &rarr;</a> {% if page.next %}
{% endif %} <a class="docs-next" href="/react/docs/{{ page.next }}">Next &rarr;</a>
</div> {% endif %}
</div>
{% endif %}
</div> </div>
</section> </section>

Loading…
Cancel
Save