Ben Balter 6/30/2022

Helpful 404s for Jekyll (and GitHub Pages)

Read Original

This technical article explains how to implement a user-friendly 404 page for static sites built with Jekyll and hosted on GitHub Pages. It details a JavaScript/TypeScript solution that fetches the site's sitemap, calculates the edit distance (Levenshtein distance) from the requested invalid URL, and dynamically suggests the closest matching page to help visitors find the content they intended to reach.

Helpful 404s for Jekyll (and GitHub Pages)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week