Fix bug with incorrectly stripping slug
This commit is contained in:
parent
3ced4c6885
commit
92ea370e40
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue