Skip to content

Commit

Permalink
fix: rss full text build
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Aug 1, 2024
1 parent 6764a93 commit b1ec341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/valaxy/node/modules/rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export async function build(options: ResolvedValaxyOptions) {
// render excerpt
// default excerpt content length: 100
const fullText = options.config.modules.rss.fullText
const html = markdown.render(excerpt || fullText ? content : content.slice(0, 100))
const defaultContent = fullText ? content : content.slice(0, 100)
const html = markdown.render(excerpt || defaultContent)
.replace('src="/', `src="${DOMAIN}/`)

if (data.image?.startsWith('/'))
Expand Down

0 comments on commit b1ec341

Please sign in to comment.