feat(content-blog): add full blog post html into RSS/Atom feeds (#4330)

Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
moonrailgun 2021-10-08 18:59:02 +08:00 committed by GitHub
parent 198590446a
commit 6ed698976d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 377 additions and 18 deletions

View file

@ -26,6 +26,7 @@ import {
getEditUrl,
getFolderContainingFile,
posixPath,
mdxToHtml,
replaceMarkdownLinks,
Globby,
normalizeFrontMatterTags,
@ -155,6 +156,7 @@ export async function generateBlogFeed(
link: normalizeUrl([siteUrl, permalink]),
date,
description,
content: mdxToHtml(post.content),
author: authors.map(toFeedAuthor),
});
});
@ -292,6 +294,7 @@ async function processBlogSourceFile(
truncated: truncateMarker?.test(content) || false,
authors,
},
content,
};
}