From e1e1ef917207ff0aa5c121bdd80cf9c735637e96 Mon Sep 17 00:00:00 2001 From: AllenChang <111629702+BlueBoy247@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:26:24 +0800 Subject: [PATCH] Update archives.js --- scripts/archives.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/archives.js b/scripts/archives.js index 15c6502..4cefd71 100644 --- a/scripts/archives.js +++ b/scripts/archives.js @@ -70,10 +70,10 @@ function listPostsBlock(startNum, endNum) { for (let i = startNum; i < endNum && i < fileList.length; i++) { const post = fileList[i]; - const postUrl = `/blog/archives/${post.id}/index.html`; + const postUrl = `/blog/archives/${post.id}`; $.ajax({ - url: postUrl, + url: `${postUrl}/index.html`, async: false, success: function (postContent) { const doc = new DOMParser().parseFromString(postContent, 'text/html');