Total Pageviews

Monday, 16 December 2024

搭建基于 github issues的静态博客程序ibwga

 首先fork项目https://github.com/Yidadaa/Issue-Blog-With-Github-Action,我fork后的项目地址是https://github.com/briteming/ibwga/

然后访问https://github.com/settings/applications/new

其中,Homepage URL和 Authorization callback URL的值都写你fork后的项目地址。点击

“register application"按钮,在跳到的页面的Client secrets的右边,点击”Generate a new 

client secret"按钮,生成client secret的值,记下Client ID的值和client secret的值。

然后编辑src/.vuepress/custom.js文件: 

https://github.com/briteming/ibwga/blob/source/src/.vuepress/custom.js ,

一看就懂, clientId那行和 clientSecret那行的值分别改为你的Client ID的值和client secret的值。第16行的pushBranch的值要改为gh-pages . (当然,你需先在这个页面https://github.com/briteming/ibwga/的左上角的source的下拉菜单里,创建 gh-pages分支

然后,到此处https://github.com/briteming/ibwga/issues 新建issue并提交。提交完成后,

访问https://github.com/briteming/ibwga/actions,等待issue标题前面的紫红色圆点和

‘ pages build and deployment‘前面的紫红色圆点变成

就说明帖子发表成功。

 演示网站:https://briteming.github.io/ibwga/

项目地址: https://github.com/Yidadaa/Issue-Blog-With-Github-Action


 

 

No comments:

Post a Comment