From a1264857d0d92ddbdca8a44b9b01e14a8effdd0a Mon Sep 17 00:00:00 2001 From: JiXieShi Date: Wed, 15 May 2024 16:16:49 +0800 Subject: [PATCH] Fix img --- themes/blog/album.html | 2 +- themes/blog/talk.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/themes/blog/album.html b/themes/blog/album.html index 7b9aaab..40c8dbb 100644 --- a/themes/blog/album.html +++ b/themes/blog/album.html @@ -236,7 +236,7 @@ if (bilibilis) { ids = bilibilis.map(item => item.replace(/{\s*bilibili\s*(.*)\s*}/, '$1').replace(/.*video\/([^\/]*).*/, '$1').trim()); } - content = content.replace(/#(.*?)\s/g, '').replace(/{.*}/g, '').replace(/\!\[(.*?)\]\((.*?)\)/g, '').replace(/```/g, '') + content = content.replace(/#(.*?)\s/g, '').replace(/{.*}/g, '').replace(/\!\[(.*?)\]\((.*?)\)/g, '').replace(/```/g,'') let text = content.replace(/\[(.*?)\]\((.*?)\)/g, '[链接]').trim(); return {content, ids, text} } diff --git a/themes/blog/talk.html b/themes/blog/talk.html index 8d3a1e5..b252d79 100644 --- a/themes/blog/talk.html +++ b/themes/blog/talk.html @@ -271,9 +271,7 @@ html += `
Leonus${item.date}
${item.content}
` }) document.getElementById('talk').innerHTML = html - imgStatus.watch('.talk-img', () => { - waterfall('#talk') - }) + imgStatus.watch('.talk-img', () => { waterfall('#talk')}) })