From 2b35ff3da380e5f190ab2670f364a0114a0413c1 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Sat, 27 May 2017 13:26:56 -0400 Subject: [PATCH] make prev next links consistent on themes single Ref #21 --- layouts/partials/previous-next-links.html | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/layouts/partials/previous-next-links.html b/layouts/partials/previous-next-links.html index 26739be7..0de52152 100644 --- a/layouts/partials/previous-next-links.html +++ b/layouts/partials/previous-next-links.html @@ -1,23 +1,24 @@ -{{if .NextInSection}} - - {{ .NextInSection.Title }} {{ partial "svg/ic_chevron_left_black_24px.svg" (dict "size" "30px") }} +{{if .Prev }} + + {{ partial "svg/ic_chevron_left_black_24px.svg" (dict "size" "30px") }} {{ .Prev.Title }} {{end}} -{{if .PrevInSection}} - - {{ partial "svg/ic_chevron_right_black_24px.svg" (dict "size" "30px") }} {{ .PrevInSection.Title }} +{{if .Next }} + + {{ .Next.Title }} {{ partial "svg/ic_chevron_right_black_24px.svg" (dict "size" "30px") }} {{end}} +