diff --git a/config.json b/config.json index 62bcb74..7cbff45 100644 --- a/config.json +++ b/config.json @@ -15,7 +15,41 @@ "Also try lunasother.nl :3", "I'll finally add that commit count thingy... someday...", "Play Cave Story!", - "Cave Story+ Sucks!" + "Cave Story+ Sucks!", + "Running out of quote ideas", + "Fun fact: The quote at my bottom is actually my discord status :/", + "World's Worst Developer", + "Remember when I used to call myself a 'Game Developer'?", + "Why are arrays and dictionaries in JSON files way more strict than in Javascript??
No like seriously why cant I use quotes instead of quotation marks :/", + "Bored", + "This website is way too empty T^T", + "Did you know there are currently {QUOTE_COUNT} quotes?", + "Seriously need to optimize this site", + "Maybe I should add an image cache instead of using a bunch of image proxies...", + "I'm gonna take down that sxng instance one day!", + "Can't wait to start self hosting this site", + "You had a 1/{QUOTE_COUNT} chance in getting tihs quote. Same with any other quote, I guess", + "It said there was {QUOTE_COUNT} quotes but there was one less when I checked... maybe im just insane...", + "I don't know if i'm gonna keep the blog around or not :/", + "Literally just dumping whatever 2 iq thought comes into my mind into this file for more quotes", + "Maybe I should make a discord server.
Maybe I should hook up this quote thing to said Discord server. Idk :3", + "I should really remove the google font :yuu:", + "Is sharing your IP reallyy that bad?", + "The worst git user to exist", + "This idiot has no idea how branches work", + "Having issues? Try reporting an ID-10-T error on the codeberg :D", + "No I don't use Github", + "I'm still sad about that one person who liked one of my repositories on Github but not on codeberg :(", + "I get no attention on codeberg!!", + "My fedi is dead! And so is my youtube I guess! I guess my Github too...", + "I think {QUOTE_COUNT} is enough quotes at this point...", + "I'm really just finding excuses to throw the quote count ({QUOTE_COUNT}) in as many quotes as I can because i had to spend 2 seconds making it :3", + "Please check out Univerter!", + "Please check out SteamRPC! (Linux only)", + "Please check out the api for this site :3", + "Please check out the beta!", + "Simpletube? Hah, I hardly remember her... its been a long time hasn't it... Maybe i'll return to it one day soon...", + "Okay I REALLY need an image cache :/" ], "thumborInstances": [ diff --git a/index.js b/index.js index 27d32b8..79a66be 100644 --- a/index.js +++ b/index.js @@ -279,7 +279,11 @@ function pageUpdate() { html = html.replace("{THUMBOR}", getThumbor()) - html = html.replace("{RANDOM_QUOTE}", randomQuotes[Math.floor(Math.random() * randomQuotes.length)]) + var quote = randomQuotes[Math.floor(Math.random() * randomQuotes.length)] + + quote = quote.replace("{QUOTE_COUNT}", randomQuotes.length) + + html = html.replace("{RANDOM_QUOTE}", quote) if (process.env.BRANCH == "dev") { html = html.replace("{OPPOSITE_URL}", "www")