From 46d02204278a472625b4c01a6922958f67a35ce1 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Tue, 13 Feb 2024 09:38:29 -0600 Subject: [PATCH] change path system to use main isntead of body --- pageUpdater.js | 2 +- static/index.html | 25 ++++++++------- static/socials/index.html | 64 ++++++++++++++++++++++----------------- 3 files changed, 51 insertions(+), 40 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index a7ed207..68dd5f5 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -47,7 +47,7 @@ function converter(html) { pagePath = pagePath.toLowerCase() var pageHTML = fs.readFileSync(path.join(__dirname, 'static', pagePath, 'index.html')).toString() - pageHTML = pageHTML.substring(pageHTML.indexOf('') + 6, pageHTML.indexOf('')) + pageHTML = pageHTML.substring(pageHTML.indexOf('
') + 6, pageHTML.indexOf('
')) html = html.replace(stringIndex, pageHTML) } diff --git a/static/index.html b/static/index.html index bdfc62b..8557a04 100644 --- a/static/index.html +++ b/static/index.html @@ -12,17 +12,16 @@ - + - - + {TOPBAR}

Welcome to Violet's PurgatoryCommit {COMMIT_COUNT}

{RANDOM_QUOTE}

@@ -44,15 +43,19 @@ -

On Violet's Purgatory:

- Beta site - Blog - Clipdump +
+

On Violet's Purgatory

+ Beta site + Blog + Clipdump -

My Other Projects

- Univerter - {Steam}RPC +

My Other Projects

+ Univerter + {Steam}RPC + +
+

Socials

{PATH_SOCIALS}
diff --git a/static/socials/index.html b/static/socials/index.html index 6c024b7..39cb3d9 100644 --- a/static/socials/index.html +++ b/static/socials/index.html @@ -12,10 +12,8 @@ - - + + @@ -24,33 +22,43 @@

Socials

-
-