mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-13 08:12:48 +02:00
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:
parent
97ca090223
commit
79214670a9
2 changed files with 24 additions and 24 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue