From a28798293daaec40df392fe8f246e98a066f94a4 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 11 Sep 2024 20:11:57 -0300 Subject: write: pagePathStringFromRoot --- src/write/bind-utilities.js | 2 ++ src/write/build-modes/live-dev-server.js | 1 + src/write/build-modes/static-build.js | 1 + 3 files changed, 4 insertions(+) diff --git a/src/write/bind-utilities.js b/src/write/bind-utilities.js index 8dd08dba..be702c8c 100644 --- a/src/write/bind-utilities.js +++ b/src/write/bind-utilities.js @@ -26,6 +26,7 @@ export function bindUtilities({ languages, missingImagePaths, pagePath, + pagePathStringFromRoot, thumbsCache, to, urls, @@ -44,6 +45,7 @@ export function bindUtilities({ languages, missingImagePaths, pagePath, + pagePathStringFromRoot, thumb, to, urls, diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js index b018bc1c..389f5f4c 100644 --- a/src/write/build-modes/live-dev-server.js +++ b/src/write/build-modes/live-dev-server.js @@ -405,6 +405,7 @@ export async function go({ languages, missingImagePaths, pagePath: servePath, + pagePathStringFromRoot: pathname.replace(/^\//, ''), thumbsCache, to, urls, diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js index 86e3da0f..c50db6b8 100644 --- a/src/write/build-modes/static-build.js +++ b/src/write/build-modes/static-build.js @@ -324,6 +324,7 @@ export async function go({ languages, missingImagePaths, pagePath, + pagePathStringFromRoot: pathname, thumbsCache, to, urls, -- cgit 1.3.0-6-gf8a5