From 2aca98d1c52c7b27bff593674fa78b5de7a3faf0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 30 Oct 2020 10:54:59 -0300 Subject: move more static site content into data files --- upd8.js | 56 +++++++++----------------------------------------------- 1 file changed, 9 insertions(+), 47 deletions(-) diff --git a/upd8.js b/upd8.js index 522fb27b..62a9cfa5 100644 --- a/upd8.js +++ b/upd8.js @@ -113,53 +113,15 @@ const SITE_TITLE = 'Homestuck Music Wiki'; const SITE_VERSION = 'autumnal polish haul'; const SITE_RELEASE = '10 October 2020'; -const SITE_ABOUT = fixWS` -

Welcome to my fan-made Homestuck music wiki!

-

Homestuck has always been an incredible creative collaboration, and especially beloved by the community and critical in that collaboration is the webcomic and world's humongous soundtrack, comprising well over 500 tracks by dozens of musicians and artists. This wiki aims to be an interesting and useful resource for anyone interested in that music, as well as an archive for all things related.

-

Pertaining to the history of this site: it was originally made as a remake of Homestuck's official Bandcamp, which saw its content particularly reduced on 10/25/19. This site aims to be a more reliable resource and reference: track art (conspicuously missing from the Bandcamp) is archived here, solo albums (among other missing albums, like [[album:Squiddles!]]) are all indexed in the one place, and URLs will always stay consistent. And of course, also included are links for listening on Bandcamp and other services.

-

The code for this website is open source (GPL-3.0), and can be explored or forked here. I don't actively keep track of issues or PRs raised there; if you want to get in touch with feature requests or comments on the code, my contact info is here!

-

Resource & Author Credits

- -

Feature Acknowledgements

- -`; - -const SITE_CHANGELOG = fs.readFileSync(`${C.DATA_DIRECTORY}/changelog.html`).toString().trim(); // fight me bro - -const SITE_FEEDBACK = fixWS` -

Feature requests?
Noticed any errors?
Itching to see that one missing album on the wiki?

-

Please let me know! I appreciate feedback a lot, and always want to make this site better.

-

The best place to talk about this site is on its HomestuckXYZ forum thread.

-

Or, if forums aren't really the thing for you, I've got an email too: towerofnix at gmail dot beans. (You know the domain.)

-

I used to have a Twitter account, but Twitter is bad and poofing from it was probably my greatest decision.

-

Thank you for sharing your feedback!

-`; - -const SITE_JS_DISABLED = fixWS` -

Sorry, that link won't work unless you're running a web browser that supports relatively modern JavaScript.

-

Please press the back button to get where you were, or head back to the index.

-`; +function readDataFile(file) { + // fight me bro + return fs.readFileSync(path.join(C.DATA_DIRECTORY, file)).toString().trim(); +} + +const SITE_ABOUT = readDataFile('about.html'); +const SITE_CHANGELOG = readDataFile('changelog.html'); +const SITE_FEEDBACK = readDataFile('feedback.html'); +const SITE_JS_DISABLED = readDataFile('js-disabled.html'); // Might ena8le this later... we'll see! Eventually. May8e. const ENABLE_ARTIST_AVATARS = false; -- cgit 1.3.0-6-gf8a5