mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 20:46:58 +02:00
fix(v2): add routeBasePath to feed link (#2691)
This commit is contained in:
parent
36726b4b0e
commit
57c7550a87
1 changed files with 3 additions and 3 deletions
|
@ -470,12 +470,12 @@ export default function pluginContentBlog(
|
||||||
const feedsConfig = {
|
const feedsConfig = {
|
||||||
rss: {
|
rss: {
|
||||||
type: 'application/rss+xml',
|
type: 'application/rss+xml',
|
||||||
path: 'blog/rss.xml',
|
path: 'rss.xml',
|
||||||
title: `${title} Blog RSS Feed`,
|
title: `${title} Blog RSS Feed`,
|
||||||
},
|
},
|
||||||
atom: {
|
atom: {
|
||||||
type: 'application/atom+xml',
|
type: 'application/atom+xml',
|
||||||
path: 'blog/atom.xml',
|
path: 'atom.xml',
|
||||||
title: `${title} Blog Atom Feed`,
|
title: `${title} Blog Atom Feed`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -495,7 +495,7 @@ export default function pluginContentBlog(
|
||||||
attributes: {
|
attributes: {
|
||||||
rel: 'alternate',
|
rel: 'alternate',
|
||||||
type,
|
type,
|
||||||
href: normalizeUrl([baseUrl, path]),
|
href: normalizeUrl([baseUrl, options.routeBasePath, path]),
|
||||||
title,
|
title,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue