Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leetaogoooo/pure
a blog based on github discussion
https://github.com/leetaogoooo/pure
blog discussions-blog github-discussions golang
Last synced: 2 months ago
JSON representation
a blog based on github discussion
- Host: GitHub
- URL: https://github.com/leetaogoooo/pure
- Owner: LeetaoGoooo
- License: mit
- Created: 2022-10-27T09:42:15.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T12:13:19.000Z (8 months ago)
- Last Synced: 2024-04-30T07:17:35.278Z (8 months ago)
- Topics: blog, discussions-blog, github-discussions, golang
- Language: Go
- Homepage: https://leetao.me
- Size: 8.42 MB
- Stars: 49
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pure
> It's a blog based on github discussion that lets you focus on your creativity. All you need to do is open your browser, log in to github and start your creative journey, no more worry about file, sync deployment and image uploads. What's more you can migrate your blog in the way you like!
# Deploy
Before you do a deployment, you need to config your own `pure.yaml`
```shell
cp pure.sample.yaml pure.yaml
```
Get your own [GITHUB_ACCESS_TOKEN](https://github.com/settings/tokens) here## Category
```bash
cd core
go test -run TestApi -v
```It'll list all your categories, then you can config your `pure.yaml`
# [Deploy To Vercel](https://github.com/LeetaoGoooo/pure/tree/vercel)
Before you do a deployment, you need to config `BlogConfig` in `constants.go`
Get your own [GITHUB_ACCESS_TOKEN](https://github.com/settings/tokens) here
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FLeetaoGoooo%2Fpure%2Ftree%2Fvercel&env=ACCESS_TOKEN,USER_NAME,REPO,REPO_ID,WEB_HOST,WEB_NAME,WEB_BIO,WEB_EMAIL,CATEGORY_ID,CATEGORY_NAME)
## comments
pure use [gitcus](https://github.com/giscus/giscus) as comment system, visit [gitcus-website](https://giscus.app/) to get your repo id ,which can be found in `data-repo-id`
![gitcus-config](./screens/gitcus-config.png)
Then just run the application
```shell
go build main.go
./main
```# Screens