From f785dd09ead55e71bf8fcf7e0bc0d553c1b9aa77 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Tue, 24 Feb 2015 16:28:47 +0100 Subject: [PATCH] do not show empty "docs-prevnext" div on single page to remove additional necessary spacing between content and footer --- docs/_layouts/single.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/_layouts/single.html b/docs/_layouts/single.html index deb7170943..c6988b4d85 100644 --- a/docs/_layouts/single.html +++ b/docs/_layouts/single.html @@ -8,13 +8,15 @@ layout: default
{{ page.description }}
{{ content }} -
- {% if page.prev %} - ← Prev - {% endif %} - {% if page.next %} - Next → - {% endif %} -
+ {% if page.prev or page.next %} +
+ {% if page.prev %} + ← Prev + {% endif %} + {% if page.next %} + Next → + {% endif %} +
+ {% endif %}