A super small blog repo. xxxx You can use github's issuse to present your blog posts in real time without having to repackage them online. Each of your blogs is visible in real time, and suppurt gitalk and mermaid, other users can comment and like at any time.
Demo:
-
my server taontech.top
-
github pages taontech.github.io
clone all code to your webserver root
git clone https://github.com/taontech/githublog.git your-webserver-path
fork this repo.
- After fork repo, remember to open issues, the default fork repo is to close issuse.
- Write the first issuse
- Create a new app in "setting -> developer settings -> OAuth Apps", and write the domain name: "https://yourname.github.io", generate a new client secret.
- Open the repo "pages", select the main branch and any of the themes.
modify config.json file
"127.0.0.1":{
"owner" : "your Github count name",
"repo" : "your repo which hold the issuses",
"clientId" : "github client id",
"clientSecret" : "github clentSecret"
"theme":"default"
}
Note:: When you add the Oauth App to obtain the required secretkey, you need to add the correct domain name, which is the domain name that will eventually provide the webservice.
Example:
"tech.top" :{
"owner" : "taontech",
"repo" : "githublog",
"clientId" : "16a063cf308dce2e4ac0",
"clientSecret" : "ca53b8ba928064a6ff64ef1fde762196625ef90a"
"theme":"forest"
}
-
- Your count Settings
⚠️ Attation: Your application’s callback URL. Read OAuth documentation for more information.
Enjoy!