From 92ea370e40f37e83fd354017b4d191e3fe9d501d Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 15 Jun 2026 16:02:32 -0400 Subject: [PATCH] Fix bug with incorrectly stripping slug --- static/top_posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/top_posts.js b/static/top_posts.js index f534657..2f560f3 100644 --- a/static/top_posts.js +++ b/static/top_posts.js @@ -12,7 +12,7 @@ const URL = window.location.origin; const ul = document.getElementById("top-posts"); for (post of data) { - const postUrl = post.slug.replace("post-", ""); + const postUrl = post.slug.replace("posts-", ""); const pageUrl = `/posts/${postUrl}`; try {