diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..7542537 --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +GITHUB_TOKEN= +GISCUS_REPO_OWNER= +GISCUS_REPO_NAME= +GISCUS_CATEGORY_ID= +GISCUS_DATA_REPO_ID= \ No newline at end of file diff --git a/src/components/Giscus.astro b/src/components/Giscus.astro index 3c8656b..984b8bf 100644 --- a/src/components/Giscus.astro +++ b/src/components/Giscus.astro @@ -1,5 +1,11 @@ --- const { term } = Astro.props; + +const repoOwner = import.meta.env.GISCUS_REPO_OWNER; +const repoName = import.meta.env.GISCUS_REPO_NAME; +const categoryId = import.meta.env.GISCUS_CATEGORY_ID; +const dataRepoId = import.meta.env.GISCUS_DATA_REPO_ID; +const repo = `${repoOwner}/${repoName}`; ---
@@ -7,10 +13,10 @@ const { term } = Astro.props;