mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 12:37:01 +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 = {
|
||||
rss: {
|
||||
type: 'application/rss+xml',
|
||||
path: 'blog/rss.xml',
|
||||
path: 'rss.xml',
|
||||
title: `${title} Blog RSS Feed`,
|
||||
},
|
||||
atom: {
|
||||
type: 'application/atom+xml',
|
||||
path: 'blog/atom.xml',
|
||||
path: 'atom.xml',
|
||||
title: `${title} Blog Atom Feed`,
|
||||
},
|
||||
};
|
||||
|
@ -495,7 +495,7 @@ export default function pluginContentBlog(
|
|||
attributes: {
|
||||
rel: 'alternate',
|
||||
type,
|
||||
href: normalizeUrl([baseUrl, path]),
|
||||
href: normalizeUrl([baseUrl, options.routeBasePath, path]),
|
||||
title,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue