do not show empty "docs-prevnext" div on single page
to remove additional necessary spacing between content and footer
Bartosz Kaszubowski committed
Feb 24, 2015 at 16:28 UTC
f785dd09ead55e71bf8fcf7e0bc0d553c1b9aa77
1 file changed
+10
-8
docs/_layouts/single.html
+10
-8
@@ -8,13 +8,15 @@ layout: default
8
<div class="subHeader">{{ page.description }}</div>
9
{{ content }}
10
11
- <div class="docs-prevnext">
12
- {% if page.prev %}
13
- <a class="docs-prev" href="/react/docs/{{ page.prev }}">← Prev</a>
14
- {% endif %}
15
- {% if page.next %}
16
- <a class="docs-next" href="/react/docs/{{ page.next }}">Next →</a>
17
- {% endif %}
18
- </div>
11
+ {% if page.prev or page.next %}
12
+ <div class="docs-prevnext">
13
+ {% if page.prev %}
14
+ <a class="docs-prev" href="/react/docs/{{ page.prev }}">← Prev</a>
15
+ {% endif %}
16
+ {% if page.next %}
17
+ <a class="docs-next" href="/react/docs/{{ page.next }}">Next →</a>
18
+ {% endif %}
19
+ </div>
20
+ {% endif %}
21
</div>
22
</section>