From d79263da36a01dc1b04b81138589cd13d6d12077 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Mon, 29 Jan 2024 20:11:54 +0800 Subject: [PATCH] fix(plugin-feed): fix feed plugin --- plugins/plugin-feed/src/node/feed/item.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/plugin-feed/src/node/feed/item.ts b/plugins/plugin-feed/src/node/feed/item.ts index 7643829df9..3f7a0140b0 100644 --- a/plugins/plugin-feed/src/node/feed/item.ts +++ b/plugins/plugin-feed/src/node/feed/item.ts @@ -1,5 +1,6 @@ import { getPageExcerpt, + getPageText, isAbsoluteUrl, isArray, isFunction, @@ -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 }