From 326fd3b8798a0af13d34baf87ab746d91fe40de9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 11 Dec 2020 12:59:35 -0400 Subject: launch of hsmusic.wiki --- upd8.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/upd8.js b/upd8.js index 8c3afe41..7a9d95f1 100644 --- a/upd8.js +++ b/upd8.js @@ -105,10 +105,11 @@ const { const C = require('./common/common'); +const SITE_CANONICAL_BASE = 'https://hsmusic.wiki/'; const SITE_TITLE = 'Homestuck Music Wiki'; const SITE_SHORT_TITLE = 'HSMusic'; -const SITE_VERSION = 'autumnal polish haul'; -const SITE_RELEASE = '10 October 2020'; +const SITE_VERSION = 'launch of hsmusic.wiki'; +const SITE_RELEASE = '12 December 2020'; const SITE_DONATE_LINK = 'https://liberapay.com/nebula'; @@ -1010,6 +1011,12 @@ async function writePage(directoryParts, { const file = path.join(directory, 'index.html'); const href = path.join(...directoryParts, 'index.html'); + let targetPath = directoryParts.join('/'); + if (directoryParts.length) { + targetPath += '/'; + } + const canonical = SITE_CANONICAL_BASE + targetPath; + const mainHTML = main.content && fixWS`
${main.content} @@ -1093,6 +1100,7 @@ async function writePage(directoryParts, { ${Object.entries(meta).map(([ key, value ]) => ``).join('\n')} + -- cgit 1.3.0-6-gf8a5