diff --git a/docs/.vitepress/utils/rss.ts b/docs/.vitepress/utils/rss.ts index 2477e03..8c47a08 100644 --- a/docs/.vitepress/utils/rss.ts +++ b/docs/.vitepress/utils/rss.ts @@ -34,7 +34,7 @@ export async function createRssFile(config: SiteConfig) { break; } const lastStr = url.split("/").pop(); - const title = lastStr?.substring(2, lastStr.length - 1) || ""; + const title = lastStr?.substring(2, lastStr.length) || ""; feed.addItem({ title, id: `${hostname}${url}`,