This commit is contained in:
Chish 2023-09-24 03:03:15 +08:00
parent 9a277d5ee2
commit 0e807db84d
4 changed files with 25 additions and 7 deletions

View File

@ -4,13 +4,31 @@
## 适应版本
- Gitea v1.20+
## 安装
1. 将 `theme-github.css` 文件移动到 `gitea/public/assets/css`, 不存在此文件夹请自行创建
2. 修改 Gitea 配置文件 `gitea/conf/app.ini`, 在文中找到或文档末尾添加
```ini
[ui]
THEME = gitea,arc-green,github
## 仓库路径树
```
3. 重启 Gitea, 并应用 `github` 主题
gitea-github-theme
├─README.md
├─public
│ ├─css
│ │ └─theme-github.css
│ └─js
│ └─theme-github.js
└─templates
└─home.tmpl
```
## 安装
- 寻找你的 Gitea 环境地址, 管理后台 -> 应用配置 -> App Data Path
- 主题
- 创建 `public/css`, 将 `theme-github.css` 文件移入
- 修改 Gitea 配置文件 `gitea/conf/app.ini`, 在文中找到或文档末尾添加:
```ini
[ui]
THEMES = gitea,arc-green,github
DEFAULT_THEME = github
```
- 主页
- 创建 `templates`, 将 `home.tmpl` 文件移入
- 重启 Gitea
> 详情请查阅  [Gitea 文档](https://docs.gitea.com/zh-cn/administration/customizing-gitea)

View File

0
templates/home.tmpl Normal file
View File