Skip to content

Commit

Permalink
make prev next links keys consistent Ref #21
Browse files Browse the repository at this point in the history
  • Loading branch information
Bud Parr committed May 27, 2017
1 parent 30db42f commit e61bb69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/previous-next-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
};

Expand Down

0 comments on commit e61bb69

Please sign in to comment.