feat: Add Utterances comments to blog posts and update icon dependencies.

This commit is contained in:
2026-02-14 15:04:07 +03:00
parent 0370479fac
commit 1019ee3ad6
4 changed files with 44 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<script setup lang="ts">
const commentsRef = ref<HTMLElement | null>(null);
onMounted(() => {
if (!commentsRef.value) return;
const script = document.createElement("script");
script.src = "https://utteranc.es/client.js";
script.setAttribute("repo", "andwati/personal-website");
script.setAttribute("issue-term", "pathname");
script.setAttribute("theme", "github-dark");
script.setAttribute("crossorigin", "anonymous");
script.async = true;
commentsRef.value.appendChild(script);
});
</script>
<template>
<div ref="commentsRef" class="mt-12 pt-8 border-t border-(--ui-border)" />
</template>