This post covers recent website updates (keyboard navigation, image popup, related posts, command palette search and 404 suggestions).
Keyboard navigation#
Added keyboard shortcuts (similar to Vim's) for navigating the site and browsing /posts/
| key | scope | do |
|---|---|---|
g+h | * | navigate to /home/ |
g+p | * | navigate to /posts/ |
g+a | * | navigate to /posts/archive/ |
j / k | /posts/ | move focus down / up through posts |
enter / o | /posts/ | open focused post |
esc | /posts/ | clear focus |
Posts and Markdown#
- Clicking an image inside a post now opens it ina "popup" with its caption
see:
- Clicking
#next to a heading copies the section URL - Posts now list up to 3 related posts at the bottom, matched by shared tags and category (needs refinement)
Command palette#
The command palette now searches posts and tags live
- Type
#(or#<tag>) to filter posts by #tag (/posts/?tag=...) - Type >2 characters to see matching posts by title, slug, category, tags
404#
- Unknown routes now suggest up to 3 matching pages under
did you mean: - Added
search posts for "..." >>based on requested path (path has to be >2 characters)
Other changes#
- Stopped showing red validation borders on form fields before they are marked invalid
