Skip to content

Commit c2689b0

Browse files
authored
Update prerender-urls.js
1 parent b44d96e commit c2689b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prerender-urls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = () => {
2323

2424
// adding all blog pages
2525
pages.push(...blogs.edges.map(blog => {
26-
const data = fs.readFileSync(join('content', 'blog', blog.id), 'utf-8').replace(/---(.*\n)*---/, '');
26+
const data = fs.readFileSync(join('content', 'blog', blog.id), 'utf-8').replace(/---(.*(\r)?\n)*---/, '');
2727
return {
2828
url: `/blog/${blog.id}`,
2929
seo: blog.details,

0 commit comments

Comments
 (0)