« get me outta code hell

fix static-build... groan... epic fail...... - 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:
author(quasar) nebula <qznebula@protonmail.com>2023-01-10 19:17:15 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-10 19:17:58 -0400
commitbfc26e34ece45983ecd96e44fe5a54a3e1d9adca (patch)
tree9207590cac349f81440c247071180d8639c7bd7d /src/write
parent76f8421b92d8b004bc5c9132abdd9dc78b60a6f5 (diff)
fix static-build... groan... epic fail......
Diffstat (limited to 'src/write')
-rw-r--r--src/write/build-modes/static-build.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js
index dab2598a..90fc38ae 100644
--- a/src/write/build-modes/static-build.js
+++ b/src/write/build-modes/static-build.js
@@ -264,11 +264,9 @@ export async function go({
     console.log(`\x1b[34;1m${`[${i + 1}/${entries.length}] ${language.code} (-> /${baseDirectory}) `.padEnd(60, '-')}\x1b[0m`);
 
     await progressPromiseAll(`Writing ${language.code}`, queue([
-      ...pageWrites.map((props) => () => {
-        const {path, page} = props;
-
-        const pageSubKey = path[0];
-        const urlArgs = path.slice(1);
+      ...pageWrites.map(page => () => {
+        const pageSubKey = page.path[0];
+        const urlArgs = page.path.slice(1);
 
         const localizedPathnames = withEntries(languages, entries => entries
           .filter(([key, language]) => key !== 'default' && !language.hidden)
@@ -317,7 +315,7 @@ export async function go({
           wikiData,
         });
 
-        const pageInfo = page(bound);
+        const pageInfo = page.page(bound);
 
         const oEmbedJSON = generateOEmbedJSON(pageInfo, {
           language,
@@ -341,9 +339,11 @@ export async function go({
           languages,
           localizedPathnames,
           oEmbedJSONHref,
-          paths,
+          pageSubKey,
+          pathname: paths.pathname,
           to,
           transformMultiline: bound.transformMultiline,
+          urlArgs,
           wikiData,
         });