
Adding a Hotkeys Page
A while ago I added hotkeys to the site. Today I added a few more and I realized I would like to have a page for them, so here it is.
Implementing some of the hotkeys required preventing the default browser behaviour (event.preventDefault()
). As of this point I use together the site hotkeys plus a browser extension to navigate and play around on the site without the mouse.
Jekyll Minima Comments¶
Some hotkeys work on every page (for scrolling and navigating to the search page). Those I added in a <script>
tag in _layouts/default.html
. Others work only in a post (for navigating to the next or previous post). Those I added in a <script>
tag in _layouts/post.html
.