diff --git a/config/filters/index.js b/config/filters/index.js index 5cf27128..f9d238da 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -141,8 +141,11 @@ export default { if (entry?.data?.link) url = entry.data.link // set the entry excerpt - if (entry.description) excerpt = entry.description - if (entry?.data?.description) excerpt = `${entry?.data?.description}

` + if (entry.description) excerpt = entry.description // general case + if (entry?.data?.description) excerpt = `${entry?.data?.description}

` // links where description is stored in frontmatter + if (entry.type === 'book') excerpt = `${entry.description}

` // books + + // send full post content to rss if (entry.content) excerpt = sanitizeHtml(`${entry.content}${feedNote}`, { disallowedTagsMode: 'completelyDiscard' }) @@ -214,4 +217,4 @@ export default { if (!string.includes(' ')) return `#${capitalizeFirstLetter(string)}` return `#${string.split(' ').map(s => capitalizeFirstLetter(s)).join('')}` } -} \ No newline at end of file +}