1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-11-14 09:05:15 +01:00

build fix

This commit is contained in:
Matthias Kretschmann 2020-11-22 00:25:43 +01:00
parent 660faceaf9
commit fdd57b22b6
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -91,7 +91,7 @@ exports.onCreatePage = async ({ page, actions }) => {
// Regex for auto-attaching project images to pages based on slug.
// Image file names follow the pattern slug-01.png.
// Regex inspiration from https://stackoverflow.com/a/7124976
const imageRegex = `/${page.path.replaceAll('/', '')}+?(?=-\\d)/`
const imageRegex = `/${page.path.replace(/\//g, '')}+?(?=-\\d)/`
deletePage(page)
createPage({