« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write
diff options
context:
space:
mode:
Diffstat (limited to 'src/write')
-rw-r--r--src/write/build-modes/live-dev-server.js4
-rw-r--r--src/write/build-modes/static-build.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index d39b6fdf..d7c33d87 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -101,7 +101,7 @@ export async function go({
       targetless,
     }) => () => {
       if (targetless) {
-        const result = pageSpec.writeTargetless({wikiData});
+        const result = pageSpec.pathsTargetless({wikiData});
         return Array.isArray(result) ? result : [result];
       } else {
         return pageSpec.pathsForTarget(target);
@@ -512,7 +512,7 @@ function getPageSpecsWithTargets({
         ? pageSpec.targets({wikiData})
             .map(target => ({pageSpec, target}))
         : [],
-      Object.hasOwn(pageSpec, 'writeTargetless') &&
+      Object.hasOwn(pageSpec, 'pathsTargetless') &&
         {pageSpec, targetless: true},
     ])
     .filter(Boolean);
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js
index f4131a3d..2fb82b84 100644
--- a/src/write/build-modes/static-build.js
+++ b/src/write/build-modes/static-build.js
@@ -173,8 +173,8 @@ export async function go({
 
         const paths = [];
 
-        if (pageSpec.writeTargetless) {
-          const result = pageSpec.writeTargetless({wikiData});
+        if (pageSpec.pathsTargetless) {
+          const result = pageSpec.pathsTargetless({wikiData});
           if (Array.isArray(result)) {
             paths.push(...result);
           } else {