From 5f2d40478a5e50031db3a3cb48f39f6b1e2b9ef5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 22 May 2022 10:41:00 -0300 Subject: fix broken redirect writes --- src/upd8.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/upd8.js') diff --git a/src/upd8.js b/src/upd8.js index f60c57a..63d36b0 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2186,8 +2186,8 @@ async function main() { const to = writePage.to({baseDirectory, pageSubKey: fromPath[0], paths: fromPaths}); const target = to('localized.' + toPath[0], ...toPath.slice(1)); - const content = generateRedirectPage(title, target, {language}); - return writePage.write(content, {paths: fromPaths}); + const html = generateRedirectPage(title, target, {language}); + return writePage.write({html, paths: fromPaths}); }) ], queueSize)); }; -- cgit 1.3.0-6-gf8a5