mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 23:34:38 +08:00
fix(route): hexo next theme (#7177)
This commit is contained in:
@@ -38,7 +38,7 @@ pageClass: routes
|
|||||||
|
|
||||||
### Next 主题博客
|
### 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 主题博客
|
### Yilia 主题博客
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ pageClass: routes
|
|||||||
|
|
||||||
### Blog using Next theme
|
### 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
|
### Blog using Yilia theme
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
|
|||||||
const storyLink = each.find('.post-title-link').attr('href');
|
const storyLink = each.find('.post-title-link').attr('href');
|
||||||
const item = {
|
const item = {
|
||||||
title: each.find('[itemprop=name]').text(),
|
title: each.find('[itemprop=name]').text(),
|
||||||
link: encodeURI(new URL(storyLink, url)),
|
link: new URL(storyLink, url),
|
||||||
};
|
};
|
||||||
const key = item.link;
|
const key = item.link;
|
||||||
const value = await ctx.cache.get(key);
|
const value = await ctx.cache.get(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user