fix(route): hexo next theme (#7177)

This commit is contained in:
fengkx
2021-03-14 14:23:29 +08:00
committed by GitHub
parent ea2e2abb91
commit 0a973535d4
3 changed files with 3 additions and 3 deletions

View File

@@ -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);