diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-01-29 23:56:21 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-01-29 23:56:21 +0300 |
| commit | 35556dca71eafdac4eb5d2fe781ba39687d0b058 (patch) | |
| tree | d85489336dce549b08d385c45cec6ae0678b211b /src/lib/components/Giscus.svelte | |
| parent | 292d9dd4241ace94bfaf50827dcedfbd40de8032 (diff) | |
initial commit
Diffstat (limited to 'src/lib/components/Giscus.svelte')
| -rw-r--r-- | src/lib/components/Giscus.svelte | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/components/Giscus.svelte b/src/lib/components/Giscus.svelte new file mode 100644 index 0000000..96be4a4 --- /dev/null +++ b/src/lib/components/Giscus.svelte @@ -0,0 +1,27 @@ +<script lang="ts"> + import { onMount } from "svelte"; + + let container: HTMLDivElement; + + onMount(() => { + const script = document.createElement("script"); + script.src = "https://giscus.app/client.js"; + script.setAttribute("data-repo", "wenekar/giscus"); + script.setAttribute("data-repo-id", "R_kgDOREZgEQ"); + script.setAttribute("data-category", "Announcements"); + script.setAttribute("data-category-id", "DIC_kwDOREZgEc4C1nRY"); + script.setAttribute("data-mapping", "pathname"); + script.setAttribute("data-strict", "0"); + script.setAttribute("data-reactions-enabled", "1"); + script.setAttribute("data-emit-metadata", "0"); + script.setAttribute("data-input-position", "bottom"); + script.setAttribute("data-theme", "preferred_color_scheme"); + script.setAttribute("data-lang", "en"); + script.setAttribute("data-loading", "lazy"); + script.crossOrigin = "anonymous"; + script.async = true; + container.appendChild(script); + }); +</script> + +<div class="giscus-container" bind:this={container}></div> |
