From e61bb69801a73624241216d5174929fe68419583 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Sat, 27 May 2017 12:51:55 -0400 Subject: [PATCH] make prev next links keys consistent Ref #21 --- layouts/partials/previous-next-links.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/previous-next-links.html b/layouts/partials/previous-next-links.html index c2ec0fac..26739be7 100644 --- a/layouts/partials/previous-next-links.html +++ b/layouts/partials/previous-next-links.html @@ -14,10 +14,10 @@ document.body.onkeyup = function(e){ {{ if .PrevInSection }} - if (e.keyCode == '37') { window.location = '{{ .PrevInSection.Permalink }}'; } + if (e.keyCode == '39') { window.location = '{{ .PrevInSection.Permalink }}'; } {{ end }} {{ if .NextInSection }} - if (e.keyCode == '39') { window.location = '{{.NextInSection.Permalink }}'; } + if (e.keyCode == '37') { window.location = '{{.NextInSection.Permalink }}'; } {{ end }} };