SImplify string interpolation

Quick refacto
This commit is contained in:
Aloïs de Gouvello 2021-06-20 08:56:12 +02:00 committed by GitHub
parent 70ac88bac8
commit 076abee9e6
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 const route = path === '/index' ? '' : path
return ` return `
<url> <url>
<loc>${`${siteMetadata.siteUrl}${route}`}</loc> <loc>${siteMetadata.siteUrl}${route}</loc>
</url> </url>
` `
}) })