diff --git a/docs/blog.md b/docs/blog.md index 0886f67be..9c12adfc1 100644 --- a/docs/blog.md +++ b/docs/blog.md @@ -38,7 +38,7 @@ pageClass: routes ### Next 主题博客 - + ### Yilia 主题博客 diff --git a/docs/en/blog.md b/docs/en/blog.md index f0e9d942d..f80e1ba19 100644 --- a/docs/en/blog.md +++ b/docs/en/blog.md @@ -20,7 +20,7 @@ pageClass: routes ### Blog using Next theme - + ### Blog using Yilia theme diff --git a/lib/routes/hexo/next.js b/lib/routes/hexo/next.js index 4dfb7cc76..389cc5d11 100644 --- a/lib/routes/hexo/next.js +++ b/lib/routes/hexo/next.js @@ -18,7 +18,7 @@ module.exports = async (ctx) => { const storyLink = each.find('.post-title-link').attr('href'); const item = { title: each.find('[itemprop=name]').text(), - link: encodeURI(new URL(storyLink, url)), + link: new URL(storyLink, url), }; const key = item.link; const value = await ctx.cache.get(key);