GitHub Discussions Integration
This theme demonstrates integration with GitHub Discussions using the github-discussions-blog-loader.
Setup
-
Configure Environment Variables:
Update the.envfile with the following values:PUBLIC_GITHUB_TOKEN: GitHub Personal Access Token with read access to discussions.PUBLIC_GITHUB_REPO_NAME: Repository name.PUBLIC_GITHUB_OWNER_NAME: Repository owner (user or organization).
Example:
PUBLIC_GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxx PUBLIC_GITHUB_REPO_NAME=your-repo-name PUBLIC_GITHUB_OWNER_NAME=your-username -
Use the GitHub Discussion Loader Component:
Import and include the component in your Astro templates:--- import GithubDiscussionLoader from "../components/github_discussion/githubDiscussion.astro"; --- <GithubDiscussionLoader />

