From 12d2d2ade4e09a432e68c5a6f39f428bd9c61c32 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 4 Oct 2019 22:15:03 +0200 Subject: [PATCH] Revert "redesign, part 1!" This reverts commit a4e1ebf073fdef817943bf997f474363f8308221. --- about.html | 240 ------------------------------------- blog.html | 240 ------------------------------------- generate.js | 39 ------ index.html | 157 +++++++++++++++---------- node/sitemap.js | 48 ++++++++ projects.html | 240 ------------------------------------- scripts/cookies.js | 15 +++ scripts/main.js | 8 ++ scripts/navbar.js | 5 + social.html | 255 ---------------------------------------- style/style.css | 19 +-- templates/about.html | 13 -- templates/blog.html | 13 -- templates/index.html | 18 --- templates/main.html | 228 ----------------------------------- templates/projects.html | 13 -- templates/social.html | 28 ----- 17 files changed, 175 insertions(+), 1404 deletions(-) delete mode 100644 about.html delete mode 100644 blog.html delete mode 100644 generate.js create mode 100644 node/sitemap.js delete mode 100644 projects.html create mode 100644 scripts/cookies.js create mode 100644 scripts/navbar.js delete mode 100644 social.html delete mode 100644 templates/about.html delete mode 100644 templates/blog.html delete mode 100644 templates/index.html delete mode 100644 templates/main.html delete mode 100644 templates/projects.html delete mode 100644 templates/social.html diff --git a/about.html b/about.html deleted file mode 100644 index 3a27601..0000000 --- a/about.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - Ellpeck.de - About - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
-

About

-

- Sometimes, some people ask me some questions about myself or my projects, so I decided to compile a list of some of the answers in a Q&A-like fashion so that I don't have to keep repeating them. If you're curious about me, this might be interesting to you! -

-
- The content that should be here is dynamically generated. Please enable JavaScript if you see this. -
- -
-
- - - - - - - - - - - - \ No newline at end of file diff --git a/blog.html b/blog.html deleted file mode 100644 index 5f04d18..0000000 --- a/blog.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - Ellpeck.de - Blog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
-

Blog

-

- Occasionally I enjoy writing stuff. So here's some of the stuff I've written. Just click on any of the headers to expand the post. -

-
- The content that should be here is dynamically generated. Please enable JavaScript if you see this. -
- -
-
- - - - - - - - - - - - \ No newline at end of file diff --git a/generate.js b/generate.js deleted file mode 100644 index a7f0ad7..0000000 --- a/generate.js +++ /dev/null @@ -1,39 +0,0 @@ -var fs = require("fs"); - -var subPages = [ - "index", - "projects", - "social", - "about", - "blog" -]; - -if (process.argv[2] == "delete") { - for (var s of subPages) { - var path = s + ".html"; - if (fs.existsSync(path)) { - console.log("Deleting " + path); - fs.unlinkSync(path); - } - } -} else { - var main = fs.readFileSync("templates/main.html").toString(); - for (var s of subPages) { - var path = s + ".html"; - var content = main; - - var template = fs.readFileSync("templates/" + path).toString(); - content = content.replace("INSERT CONTENT", template); - - var titleIndex = template.indexOf("TITLE") + 5; - var title = template.substring(titleIndex, template.indexOf("-->", titleIndex)); - content = content.split("INSERT TITLE").join(title); - - var descIndex = template.indexOf("DESCRIPTION") + 11; - var desc = template.substring(descIndex, template.indexOf("-->", descIndex)) - content = content.split("INSERT DESCRIPTION").join(desc); - - console.log("Creating " + path); - fs.writeFileSync(path, content); - } -} \ No newline at end of file diff --git a/index.html b/index.html index f85bfbf..b514e07 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,9 @@ - Ellpeck.de + Ellpeck.de - + @@ -16,8 +16,8 @@ - - + + @@ -34,19 +34,13 @@ - +