为你的 Github 仓库引入自动构建的Github Pages静态页面

1. 设置config文件

在Github仓库根目录下创建_config.yml文件。其中的内容为:

yml 复制代码
plugins:
  - jekyll-relative-links
relative_links:
  enabled: true
  collections: true
include:
  - CONTRIBUTING.md
  - README.md
  - LICENSE.md
  - COPYING.md
  - CODE_OF_CONDUCT.md
  - CONTRIBUTING.md
  - ISSUE_TEMPLATE.md
  - PULL_REQUEST_TEMPLATE.md

theme: jekyll-theme-tactile
  • include中应该跟你仓库中的md文件对应
  • theme指定了需要使用的静态页面模板(支持的主题请查看这里

2. 激活仓库配置中的 Github Pages

在您的项目的 Github 页面进入 Settings > Pages ,设置激活即可!

参考

  1. https://pages.github.com/themes/
  2. https://nicolas-van.github.io/easy-markdown-to-github-pages/
相关推荐
九狼11 小时前
Flutter URL Scheme 跨平台跳转
人工智能·flutter·github
逛逛GitHub14 小时前
4 个热门的 GitHub 开源项目
github
程序员鱼皮17 小时前
GitHub 关注突破 2w,我总结了 10 个涨星涨粉技巧!
前端·后端·github
HelloGitHub20 小时前
《HelloGitHub》第 119 期
开源·github
冬奇Lab1 天前
一天一个开源项目(第35篇):GitHub Store - 跨平台的 GitHub Releases 应用商店
开源·github·资讯
Jahzo1 天前
openclaw桌面端体验--ClawX
人工智能·github
逛逛GitHub2 天前
6个粉丝推荐的 GitHub 项目,收藏一波。
github
MaoPou2 天前
Hello Haxe篇
github