« 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/bind-utilities.js4
-rw-r--r--src/write/build-modes/live-dev-server.js2
-rw-r--r--src/write/page-template.js4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/write/bind-utilities.js b/src/write/bind-utilities.js
index 50596a39..be9ad66c 100644
--- a/src/write/bind-utilities.js
+++ b/src/write/bind-utilities.js
@@ -26,6 +26,7 @@ export function bindUtilities({
   getSizeOfImageFile,
   language,
   languages,
+  pagePath,
   to,
   urls,
   wikiData,
@@ -44,10 +45,11 @@ export function bindUtilities({
     html,
     language,
     languages,
+    pagePath,
     thumb,
     to,
     urls,
-    wikiData,
+    wikiInfo: wikiData.wikiInfo,
   });
 
   bound.getColors = bindOpts(getColors, {chroma});
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index 129ac9ab..6dbcf3ee 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -20,7 +20,6 @@ import {
 } from '../../util/urls.js';
 
 import {
-  generateDocumentHTML,
   generateGlobalWikiDataJSON,
   generateRedirectHTML,
 } from '../page-template.js';
@@ -350,6 +349,7 @@ export async function go({
         getSizeOfImageFile,
         language,
         languages,
+        pagePath: servePath,
         to,
         urls,
         wikiData,
diff --git a/src/write/page-template.js b/src/write/page-template.js
index 1c448fc7..d3d7b098 100644
--- a/src/write/page-template.js
+++ b/src/write/page-template.js
@@ -3,10 +3,6 @@ import chroma from 'chroma-js';
 import * as html from '../util/html.js';
 import {getColors} from '../util/colors.js';
 
-import {
-  getFooterLocalizationLinks,
-} from '../misc-templates.js';
-
 export function generateDevelopersCommentHTML({
   buildTime,
   commit,