« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/upd8.js b/src/upd8.js
index e81eccc..7f05fba 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2306,6 +2306,8 @@ async function main() {
             // each page?
             const bound = {};
 
+            bound.html = html;
+
             bound.link = withEntries(unbound_link, (entries) =>
               entries.map(([key, fn]) => [key, bindOpts(fn, {to})])
             );
@@ -2497,7 +2499,7 @@ async function main() {
                   .from('shared.root')
                   .to('shared.path', paths.pathname + OEMBED_JSON_FILE);
 
-            const html = writePage.html(pageInfo, {
+            const pageHTML = writePage.html(pageInfo, {
               defaultLanguage: finalDefaultLanguage,
               language,
               languages,
@@ -2510,7 +2512,7 @@ async function main() {
             });
 
             return writePage.write({
-              html,
+              html: pageHTML,
               oEmbedJSON,
               paths,
             });