Skip to content

Commit

Permalink
Debugging in production
Browse files Browse the repository at this point in the history
  • Loading branch information
dreeves committed Aug 17, 2023
1 parent 32811fa commit 42d87f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const posts = await getPosts().then((posts: Post[]) => posts.map(p => ({
let cpost = '';
let edist = Infinity; // minimum edit distance across all slugs in the archive
for (const p of posts) {
const dist = levenshtein(sadslug, p.slug);
const dist = 0 // levenshtein(sadslug, p.slug);
if (dist <= edist) { edist = dist; cpost = p } // break ties by recency
}
---
Expand Down

0 comments on commit 42d87f1

Please sign in to comment.