From bfc26e34ece45983ecd96e44fe5a54a3e1d9adca Mon Sep 17 00:00:00 2001
From: "(quasar) nebula" <qznebula@protonmail.com>
Date: Tue, 10 Jan 2023 19:17:15 -0400
Subject: fix static-build... groan... epic fail......

---
 src/write/build-modes/static-build.js | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'src')

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,
         });
 
-- 
cgit 1.3.0-6-gf8a5