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

@@ -38,7 +38,7 @@ pageClass: routes
### Next 主题博客
<Route author="fengkx" example="/hexo/next/fengkx.top" path="/hexo/next/:url" :paramsDesc="['博客 Url 不带协议头']"/>
<Route author="fengkx" example="/hexo/next/diygod.me" path="/hexo/next/:url" :paramsDesc="['博客 Url 不带协议头']"/>
### Yilia 主题博客

View File

@@ -20,7 +20,7 @@ pageClass: routes
### Blog using Next theme
<RouteEn author="fengkx" path="/hexo/next/:url" example="/hexo/next/fengkx.top" :paramsDesc="['the blog URL without the protocol (http:// and https://)']" />
<RouteEn author="fengkx" path="/hexo/next/:url" example="/hexo/next/diygod.me" :paramsDesc="['the blog URL without the protocol (http:// and https://)']" />
### Blog using Yilia theme

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