From a2f2a7ed1472a902fd5a804eed8df209e7123a8b 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 --- _layouts/single.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/_layouts/single.html b/_layouts/single.html index deb71709..c6988b4d 100644 --- a/_layouts/single.html +++ b/_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 %}