fix(content-blog): blog Atom feed id + RSS feed guid should be fully qualified urls (#8381)

Closes https://github.com/facebook/docusaurus/issues/8380
This commit is contained in:
John Reilly 2022-11-30 12:56:21 +00:00 committed by GitHub
parent 97ca090223
commit 79214670a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 24 deletions

View file

@ -61,7 +61,6 @@ async function generateBlogFeed({
await Promise.all(
blogPosts.map(async (post) => {
const {
id,
metadata: {
title: metadataTitle,
permalink,
@ -79,10 +78,11 @@ async function generateBlogFeed({
);
const $ = cheerioLoad(content);
const link = normalizeUrl([siteUrl, permalink]);
const feedItem: FeedItem = {
title: metadataTitle,
id,
link: normalizeUrl([siteUrl, permalink]),
id: link,
link,
date,
description,
// Atom feed demands the "term", while other feeds use "name"