fix: use aliase #199

This commit is contained in:
alxshelepenok 2019-05-10 03:52:30 +03:00
parent 63675a65f2
commit 46743e9e1a

View File

@ -138,7 +138,7 @@ module.exports = {
{
site {
siteMetadata {
url
siteUrl: url
}
}
allSitePage(
@ -156,7 +156,7 @@ module.exports = {
`,
output: '/sitemap.xml',
serialize: ({ site, allSitePage }) => allSitePage.edges.map((edge) => ({
siteUrl: site.siteMetadata.url + edge.node.path,
url: site.siteMetadata.siteUrl + edge.node.path,
changefreq: 'daily',
priority: 0.7
}))