« get me outta code hell

content: generateFooterLocalizationLinks - 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-04-08 18:18:13 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-08 18:26:12 -0300
commit76845689c624b603509abbe6f0a289362bb42a04 (patch)
tree04b59dce0d656aa02759fe638c609fc66f8781a5 /src/write
parent392d6ec799c87ef536335211cb34b1b795147369 (diff)
content: generateFooterLocalizationLinks
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,