在github仓库 https://github.com/NICSEFC-EffAlg/website 提交pull request,管理员审核后merge到main分支后更新网站。
修改_data/pubs.yml
修改_data/people.yml
注意,project需要使用展示图片,可以写图床链接,也可以上传一张image到assets/people_images
文件夹,写image: /assets/people_images/<image_name>
。
为了保证访问速度,请确保图片大小<500KB,推荐使用jpg压缩。
修改_data/highlights.yml
- 如果在国内,要挂代理哦,软件都要外网!
- 安装 jekyll,安装教程
https://jekyllrb.com/docs/installation/
. - 注释中
Gemfile
中的gem "github-pages", group: :jekyll_plugins
- 注释
_config.yml
中的remote_theme: "mmistakes/[email protected]"
- 取消注释
_config.yml
中的theme: minimal-mistakes-jekyll
- 运行
bundle install
- 运行
jekyll serve --watch
注意!修改完代码之后,不要把修改后的Gemfile
和_config.yml
上传,否则githubio不能正常编译。