diff --git a/pageUpdater.js b/pageUpdater.js index 7e3144f..212951d 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -17,6 +17,10 @@ var lanyardData = undefined var uptime = Date.now() +function firstToUpper(str) { + return str.charAt(0).toUpperCase() + str.slice(1) +} + function converter(html, query) { while (html.includes("{PATH_")) { var pagePath = html.substring(html.indexOf("{PATH_")) @@ -46,7 +50,17 @@ function converter(html, query) { var time = new Date(Date.now()) + var bnchName = "Beta" + var bnchSub = "beta." + + if (process.env.BRANCH == "dev") { + bnchName = "Stable" + bnchSub = "" + } + var replacers = { + "BRANCH_NAME": bnchName, + "BRANCH_SUB": bnchSub, "COMMIT_COUNT": commitCount, "RANDOM_QUOTE": quotes[Math.floor(Math.random() * quotes.length)], "QUOTE_COUNT": quotes.length, diff --git a/static/index.html b/static/index.html index ef71aff..4cb0cda 100644 --- a/static/index.html +++ b/static/index.html @@ -47,8 +47,9 @@

Hi! I'm Violet, a 15 year old web and game developer. I aspire to make server-sided dynamic websites, with no Javascript required! I'm currently making games in the Godot Engine, and my dynamic sites in NodeJS.

Socials Nerd FAQ + Stats
- Beta site + {BRANCH_NAME} site Blog FileShare