首先fork此仓库https://github.com/Meekdai/meekdai.github.io
,fork后的仓库名称不一定要设为your-username.github.io 。如果your-username.github.io已经用来建站,你可以另外取个名字,我取为gmeek-blog。这样,新建的仓库地址是https://github.com/luckypoemster/gmeek-blog 。
2. 在仓库的设置Settings中Pages->Build and deployment->Source下面选择Github Actions。
3. 【开始写作】新建一个issue,并且必须添加一个Label(至少添加一个),提交issue后会自动创建博客内容,片刻后可通过https://XXX.github.io/gmeek-blog 访问(可进入Actions页面查看构建进度)。
然后,编辑config.json配置文件,GMEEK_VERSION的值改为main.在创建的仓库内可以找到config.json,对应修改为自己的即可:
{ "title":"gmeekBlog of brite", "subTitle":"冷眼看世界", "avatarUrl":"https://github.githubassets.com/favicons/favicon.svg", "GMEEK_VERSION":"main" }
以上是必须的字段.下面是可以自定义字段的描述,可以选择加入到config.json中,建议加上这行:
"onePageListNum":5,onePageListNum用于首页每页展示的文章数量,起到分页的作用。其他的字段可以不用加。
然后,在这里https://github.com/luckypoemster/gmeek-blog/actions,点击左上角的build Gmeek,然后在右上角的run workflow那里,点击下拉菜单,选择branch:main,点击下一行的run workflow,等待action操作完成。
删除文章,只需要Close issue或者Delete issue后,再手动全局生成一次即可。
演示网站:gmeekBlog of brite
项目地址:
https://github.com/Meekdai/meekdai.github.io
教程:
https://github.com/Meekdai/meekdai.github.io/issues/39
https://blog.meekdai.com/post/Gmeek-kuai-su-shang-shou.html
----------------------------------
https://github.com/luckypoem/mgi
my demo blog: https://luckypoem.github.io/mgi/
No comments:
Post a Comment