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 {