diff --git a/src/components/Head.astro b/src/components/Head.astro
index 134d79b..1273a30 100644
--- a/src/components/Head.astro
+++ b/src/components/Head.astro
@@ -77,7 +77,7 @@ const { title, description, image = "/astro-micro.jpg" } = Astro.props;
animate();
updateThemeButtons();
addCopyCodeButtons();
- setGiscusTheme();
+ setHyvorTheme();
const backToTop = document.getElementById("back-to-top");
backToTop?.addEventListener("click", (event) => scrollToTop(event));
@@ -199,7 +199,7 @@ const { title, description, image = "/astro-micro.jpg" } = Astro.props;
window.getComputedStyle(css).opacity;
document.head.removeChild(css);
- setGiscusTheme();
+ setHyvorTheme();
}
function preloadTheme() {
@@ -249,15 +249,10 @@ const { title, description, image = "/astro-micro.jpg" } = Astro.props;
}
}
- const setGiscusTheme = () => {
- const giscus = document.querySelector(".giscus-frame");
-
+ const setHyvorTheme = () => {
const isDark = document.documentElement.classList.contains("dark");
-
- if (giscus) {
- const url = new URL(giscus.src);
- url.searchParams.set("theme", isDark ? "dark" : "light");
- giscus.src = url.toString();
+ if (window.hyvorTalk) {
+ window.hyvorTalk.changeTheme(isDark ? "dark" : "light");
}
};
diff --git a/src/components/Hyvor.astro b/src/components/Hyvor.astro
new file mode 100644
index 0000000..f09e9a6
--- /dev/null
+++ b/src/components/Hyvor.astro
@@ -0,0 +1,13 @@
+---
+// Hyvor Talk comments component
+const WEBSITE_ID = 12930; // Your Hyvor Talk website ID
+---
+
+
+
+
diff --git a/src/consts.ts b/src/consts.ts
index 2b2e598..5ccc05f 100644
--- a/src/consts.ts
+++ b/src/consts.ts
@@ -3,7 +3,7 @@ import type { Metadata, Site, Socials } from "@types";
export const SITE: Site = {
TITLE: "Neeldhara",
DESCRIPTION: "Musings on algorithms, games, teaching, and the occasional wandering thought.",
- EMAIL: "neeldhara.m@iitgn.ac.in",
+ EMAIL: "neeldhara.misra@gmail.com",
NUM_POSTS_ON_HOMEPAGE: 5,
NUM_PROJECTS_ON_HOMEPAGE: 3,
};
diff --git a/src/pages/blog/[...id].astro b/src/pages/blog/[...id].astro
index b9062fd..bc3e362 100644
--- a/src/pages/blog/[...id].astro
+++ b/src/pages/blog/[...id].astro
@@ -7,7 +7,7 @@ import { readingTime } from "@lib/utils";
import BackToPrevious from "@components/BackToPrevious.astro";
import PostNavigation from "@components/PostNavigation.astro";
import TableOfContents from "@components/TableOfContents.astro";
-import Giscus from "@components/Giscus.astro";
+import Hyvor from "@components/Hyvor.astro";
export async function getStaticPaths() {
const posts = (await getCollection("blog"))
@@ -93,7 +93,7 @@ const { Content, headings } = await render(post);
-
+
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 27df1a5..3d7959c 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -24,16 +24,13 @@ const projects: CollectionEntry<"projects">[] = (