-
- I'm Latvian, 17. My name's Sophie. I love listening to music, I have <loading...> song plays.
-
- I am a JS/TS developer, mostly specializing in backend work.
-
- I play minecraft, and upgun with friends. I have developed many bukkit plugins for Paper/Folia/Spigot
- before, and am pretty well versed in them.
-
- Contact me at matrix, discord, github (view projects here), sadgit, or mastodon
-
- Here's my PGP key.
-
-
-
-
BTC bc1q83jdukjn4a2qm0rmn9tqcfkcq60la22lqy2shx
-
ETH/BSC/USDT/USDC (send via BSC) 0xc691cd8950Fdf96Faa2aCA1CA9b4B3Fd5B2a44BB
+
+
+
+
+
+
\ No newline at end of file
diff --git a/website/blog.ts b/website/blog.ts
new file mode 100644
index 0000000..fb0e580
--- /dev/null
+++ b/website/blog.ts
@@ -0,0 +1,34 @@
+const uriParams = new URLSearchParams(location.search);
+if (uriParams.has("md")) {
+ const error = document.getElementById("error")!;
+ const renderer = document.getElementById("renderer")!;
+ const return_back = document.getElementById("return_back")!;
+ const req = await fetch("/blogs/" + uriParams.get("md") + ".html");
+ const giscus = document.querySelector(".giscus")! as HTMLDivElement;
+ if (req.status != 200) {
+ error.style.display = "block";
+ giscus.style.display = "none";
+ } else {
+ let text = await req.text();
+ renderer.innerHTML = text;
+ }
+ return_back.style.display = "block";
+} else {
+ //@ts-expect-error
+ const blog_posts = __BLOG_POSTS__.map(z => z.replace(".md", ""))
+ const html_list = document.getElementById("html_list")!;
+ html_list.style.display = "block";
+ for (const blog_post of blog_posts) {
+ const req = await fetch("/blogs/" + blog_post + ".json");
+ const metadata = await req.json();
+ const li = document.createElement("li");
+ const a = document.createElement("a");
+ a.href = "/blog.html?md=" + encodeURIComponent(blog_post);
+ a.innerText = `${metadata.title} (created ${new Date(
+ metadata.time * 1000
+ //@ts-expect-error
+ ).toGMTString()})`;
+ li.appendChild(a);
+ html_list.appendChild(li);
+ }
+}
diff --git a/src/web/blogs/opensource-watch-comparison.md b/website/blogs/opensource-watch-comparison.md
similarity index 100%
rename from src/web/blogs/opensource-watch-comparison.md
rename to website/blogs/opensource-watch-comparison.md
diff --git a/src/web/blogs/raspberry-pi-struggles.md b/website/blogs/raspberry-pi-struggles.md
similarity index 100%
rename from src/web/blogs/raspberry-pi-struggles.md
rename to website/blogs/raspberry-pi-struggles.md
diff --git a/src/web/blogs/why-i-syncthing.md b/website/blogs/why-i-syncthing.md
similarity index 100%
rename from src/web/blogs/why-i-syncthing.md
rename to website/blogs/why-i-syncthing.md
diff --git a/website/index.html b/website/index.html
new file mode 100644
index 0000000..d0811f9
--- /dev/null
+++ b/website/index.html
@@ -0,0 +1,54 @@
+__TEMPLATE_HEAD__
+
+
+
+
+
+
+
+
+
+
+
+ | |
+
+
+
+ I'm Latvian, 17. My name's Sophie. I love listening to music, I have <loading...> song plays.
+
+ I am a JS/TS developer, mostly specializing in backend work.
+
+ I play minecraft, and upgun with friends. I have developed many bukkit plugins for Paper/Folia/Spigot
+ before, and am pretty well versed in them.
+
+ Contact me at matrix, discord, github (view projects here), sadgit, or mastodon
+
+ Here's my PGP key.
+
+
+
+
BTC bc1q83jdukjn4a2qm0rmn9tqcfkcq60la22lqy2shx
+
ETH/BSC/USDT/USDC (send via BSC) 0xc691cd8950Fdf96Faa2aCA1CA9b4B3Fd5B2a44BB