Skip to content

Commit a287982

Browse files
committed
write: pagePathStringFromRoot
1 parent 2da0d55 commit a287982

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/write/bind-utilities.js

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function bindUtilities({
2626
languages,
2727
missingImagePaths,
2828
pagePath,
29+
pagePathStringFromRoot,
2930
thumbsCache,
3031
to,
3132
urls,
@@ -44,6 +45,7 @@ export function bindUtilities({
4445
languages,
4546
missingImagePaths,
4647
pagePath,
48+
pagePathStringFromRoot,
4749
thumb,
4850
to,
4951
urls,

src/write/build-modes/live-dev-server.js

+1
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ export async function go({
405405
languages,
406406
missingImagePaths,
407407
pagePath: servePath,
408+
pagePathStringFromRoot: pathname.replace(/^\//, ''),
408409
thumbsCache,
409410
to,
410411
urls,

src/write/build-modes/static-build.js

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ export async function go({
324324
languages,
325325
missingImagePaths,
326326
pagePath,
327+
pagePathStringFromRoot: pathname,
327328
thumbsCache,
328329
to,
329330
urls,

0 commit comments

Comments
 (0)