mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-23 01:29:41 +01:00
build fix
This commit is contained in:
parent
660faceaf9
commit
fdd57b22b6
@ -91,7 +91,7 @@ exports.onCreatePage = async ({ page, actions }) => {
|
|||||||
// Regex for auto-attaching project images to pages based on slug.
|
// Regex for auto-attaching project images to pages based on slug.
|
||||||
// Image file names follow the pattern slug-01.png.
|
// Image file names follow the pattern slug-01.png.
|
||||||
// Regex inspiration from https://stackoverflow.com/a/7124976
|
// Regex inspiration from https://stackoverflow.com/a/7124976
|
||||||
const imageRegex = `/${page.path.replaceAll('/', '')}+?(?=-\\d)/`
|
const imageRegex = `/${page.path.replace(/\//g, '')}+?(?=-\\d)/`
|
||||||
|
|
||||||
deletePage(page)
|
deletePage(page)
|
||||||
createPage({
|
createPage({
|
||||||
|
Loading…
Reference in New Issue
Block a user