Fix bug with incorrectly stripping slug

This commit is contained in:
Alex Selimov 2026-06-15 16:02:32 -04:00
parent 3ced4c6885
commit 92ea370e40

View file

@ -12,7 +12,7 @@
const URL = window.location.origin; const URL = window.location.origin;
const ul = document.getElementById("top-posts"); const ul = document.getElementById("top-posts");
for (post of data) { for (post of data) {
const postUrl = post.slug.replace("post-", ""); const postUrl = post.slug.replace("posts-", "");
const pageUrl = `/posts/${postUrl}`; const pageUrl = `/posts/${postUrl}`;
try { try {