为你的 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/
相关推荐
Gladiator5751 小时前
博客记录-day151-面试+力扣
github
三道杠卷胡3 小时前
【AI News | 20250424】每日AI进展
人工智能·pytorch·python·语言模型·github
油泼辣子多加4 小时前
2025年04月24日Github流行趋势
github
uhakadotcom6 小时前
人工智能如何改变医疗行业:简单易懂的基础介绍与实用案例
算法·面试·github
uhakadotcom8 小时前
企业智能体网络(Agent Mesh)入门指南:基础知识与实用示例
后端·面试·github
我的golang之路果然有问题9 小时前
给git配置SSH(github,gitee)
经验分享·笔记·git·学习·gitee·ssh·github
勤劳打代码9 小时前
游刃有余 —— Isolate 轻量化实战
flutter·github·dart
AI蜗牛车10 小时前
【LLM+Code】Github Copilot Agent/VsCode Agent 模式Prompt&Tools详细解读
人工智能·语言模型·github·copilot·agent
运营猫小海豚10 小时前
DooTask功能与企业适配性分析
开源·github
油泼辣子多加10 小时前
2025年04月23日Github流行趋势
github