chore: update intro, email, and switch to Hyvor comments

This commit is contained in:
Neeldhara Misra 2026-02-20 13:53:20 +05:30
parent b70dba44c2
commit f168cfec0e
5 changed files with 23 additions and 18 deletions

View file

@ -77,7 +77,7 @@ const { title, description, image = "/astro-micro.jpg" } = Astro.props;
animate(); animate();
updateThemeButtons(); updateThemeButtons();
addCopyCodeButtons(); addCopyCodeButtons();
setGiscusTheme(); setHyvorTheme();
const backToTop = document.getElementById("back-to-top"); const backToTop = document.getElementById("back-to-top");
backToTop?.addEventListener("click", (event) => scrollToTop(event)); backToTop?.addEventListener("click", (event) => scrollToTop(event));
@ -199,7 +199,7 @@ const { title, description, image = "/astro-micro.jpg" } = Astro.props;
window.getComputedStyle(css).opacity; window.getComputedStyle(css).opacity;
document.head.removeChild(css); document.head.removeChild(css);
setGiscusTheme(); setHyvorTheme();
} }
function preloadTheme() { function preloadTheme() {
@ -249,15 +249,10 @@ const { title, description, image = "/astro-micro.jpg" } = Astro.props;
} }
} }
const setGiscusTheme = () => { const setHyvorTheme = () => {
const giscus = document.querySelector(".giscus-frame");
const isDark = document.documentElement.classList.contains("dark"); const isDark = document.documentElement.classList.contains("dark");
if (window.hyvorTalk) {
if (giscus) { window.hyvorTalk.changeTheme(isDark ? "dark" : "light");
const url = new URL(giscus.src);
url.searchParams.set("theme", isDark ? "dark" : "light");
giscus.src = url.toString();
} }
}; };

View file

@ -0,0 +1,13 @@
---
// Hyvor Talk comments component
const WEBSITE_ID = 12930; // Your Hyvor Talk website ID
---
<hyvor-talk-comments
website-id={WEBSITE_ID}
page-id={Astro.url.pathname}
colors="light"
color-scheme="auto"
></hyvor-talk-comments>
<script is:inline src="https://talk.hyvor.com/embed/embed.js" type="module"></script>

View file

@ -3,7 +3,7 @@ import type { Metadata, Site, Socials } from "@types";
export const SITE: Site = { export const SITE: Site = {
TITLE: "Neeldhara", TITLE: "Neeldhara",
DESCRIPTION: "Musings on algorithms, games, teaching, and the occasional wandering thought.", 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_POSTS_ON_HOMEPAGE: 5,
NUM_PROJECTS_ON_HOMEPAGE: 3, NUM_PROJECTS_ON_HOMEPAGE: 3,
}; };

View file

@ -7,7 +7,7 @@ import { readingTime } from "@lib/utils";
import BackToPrevious from "@components/BackToPrevious.astro"; import BackToPrevious from "@components/BackToPrevious.astro";
import PostNavigation from "@components/PostNavigation.astro"; import PostNavigation from "@components/PostNavigation.astro";
import TableOfContents from "@components/TableOfContents.astro"; import TableOfContents from "@components/TableOfContents.astro";
import Giscus from "@components/Giscus.astro"; import Hyvor from "@components/Hyvor.astro";
export async function getStaticPaths() { export async function getStaticPaths() {
const posts = (await getCollection("blog")) const posts = (await getCollection("blog"))
@ -93,7 +93,7 @@ const { Content, headings } = await render(post);
<PostNavigation prevPost={prevPost} nextPost={nextPost} /> <PostNavigation prevPost={prevPost} nextPost={nextPost} />
</div> </div>
<div class="mt-24"> <div class="mt-24">
<Giscus /> <Hyvor />
</div> </div>
</article> </article>
</Container> </Container>

View file

@ -24,16 +24,13 @@ const projects: CollectionEntry<"projects">[] = (
<Container> <Container>
<aside data-pagefind-ignore> <aside data-pagefind-ignore>
<h1 class="font-semibold text-black dark:text-white"> <h1 class="font-semibold text-black dark:text-white">
Hello! 👋
</h1> </h1>
<div class="space-y-16"> <div class="space-y-16">
<section> <section>
<article class="space-y-4"> <article class="space-y-4">
<p> <p>
I'm Neeldhara, an Associate Professor in Computer Science & Engineering at <Link href="https://iitgn.ac.in">IIT Gandhinagar</Link>. My research spans algorithm design, computational social choice, and combinatorial games. I am Neeldhara, a faculty member with the Computer Science and Engineering Department at <Link href="https://iitgn.ac.in">IIT Gandhinagar</Link>. This page is mostly a stream of consciousness braindump so I can reduce spamming my friends individually!
</p>
<p class="animate">
This is a space for short notes, stray observations, and things I find interesting. For more about my work, visit <Link href="https://neeldhara.com">neeldhara.com</Link>.
</p> </p>
</article> </article>
</section> </section>