From f7d6efb585908719b4fcbb778b38ea03fb5641c5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 7 Dec 2020 13:45:46 -0400 Subject: here is a lot of data i am so sorry --- upd8.js | 281 ++++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 159 insertions(+), 122 deletions(-) (limited to 'upd8.js') diff --git a/upd8.js b/upd8.js index b0ba0ee7..cbf25a80 100644 --- a/upd8.js +++ b/upd8.js @@ -564,6 +564,7 @@ async function processAlbumDataFile(file) { track.artTags = getListField(section, 'Art Tags') || []; track.contributors = getContributionField(section, 'Contributors') || []; track.directory = getBasicField(section, 'Directory'); + track.aka = getBasicField(section, 'AKA'); if (!track.name) { return {error: 'A track section is missing the "Track" (name) field (in ${album.name)}.'}; @@ -764,7 +765,7 @@ async function processNewsDataFile(file) { date = new Date(date); - let bodyShort = body.split('\n')[0]; + let bodyShort = body.split('
')[0]; body = transformMultiline(body); bodyShort = transformMultiline(bodyShort); @@ -1250,7 +1251,8 @@ function writeMiscellaneousPages() { ${newsData.slice(0, 3).map(entry => fixWS`

${entry.name}

- ${entry.body} + ${entry.bodyShort} + ${entry.bodyShort !== entry.body && `(View rest of entry!)`}
`).join('\n')} ` @@ -1320,17 +1322,12 @@ function writeMiscellaneousPages() { content: fixWS`

Flashes & Games

-

Also check out:

-