Merge pull request 'QUOTES GALORE' (#17) from dev into origin
Reviewed-on: https://codeberg.orgBingus_Violet/Violets-Purgatory#17
This commit is contained in:
commit
36a64ce085
2 changed files with 40 additions and 2 deletions
36
config.json
36
config.json
|
@ -15,7 +15,41 @@
|
|||
"Also try <a href='https://lunasother.nl'>lunasother.nl</a> :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 <em>actually</em> 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?? <br> 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. <br>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 <em>reallyy</em> 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 <a href='https://yt.violets-purgatory.dev'>Univerter</a>!",
|
||||
"Please check out <a href='https://codeberg.org/Bingus_Violet/SteamRPC'>SteamRPC</a>! (Linux only)",
|
||||
"Please check out <a href='https://api.violets-purgatory.dev'>the api for this site</a> :3",
|
||||
"Please check out the <a href='https://beta.violets-purgatory.dev'>beta</a>!",
|
||||
"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 <em>REALLY</em> need an image cache :/"
|
||||
],
|
||||
|
||||
"thumborInstances": [
|
||||
|
|
6
index.js
6
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")
|
||||
|
|
Loading…
Reference in a new issue