Skip to content

Commit

Permalink
fix: rss title error
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin3go committed Feb 18, 2024
1 parent b2902ba commit 303ab06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/utils/rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 303ab06

Please sign in to comment.