fix(v2): add routeBasePath to feed link (#2691)

This commit is contained in:
Yamagishi Kazutoshi 2020-04-30 00:22:42 +09:00 committed by GitHub
parent 36726b4b0e
commit 57c7550a87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
},
});