Skip to content

Commit

Permalink
fix(plugin-feed): fix feed plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 29, 2024
1 parent 5201c27 commit d79263d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/plugin-feed/src/node/feed/item.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
getPageExcerpt,
getPageText,
isAbsoluteUrl,
isArray,
isFunction,
Expand Down Expand Up @@ -79,7 +80,7 @@ export class FeedItem {

if (this.frontmatter.description) return this.frontmatter.description

const pageText = getPageText(this.page)
const pageText = getPageText(this.app, this.page, { length: 180 })

return pageText.length > 180 ? `${pageText.slice(0, 177)}...` : pageText
}
Expand Down

0 comments on commit d79263d

Please sign in to comment.