Merge pull request #82 from aloisdg/patch-1

Simplify string interpolation
This commit is contained in:
Timothy 2021-06-20 22:28:47 +08:00 committed by GitHub
commit 360ddfcc09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ const siteMetadata = require('../data/siteMetadata')
const route = path === '/index' ? '' : path
return `
<url>
<loc>${`${siteMetadata.siteUrl}${route}`}</loc>
<loc>${siteMetadata.siteUrl}${route}</loc>
</url>
`
})