README.md 2.1 KB

SwayBien 团队的 Gogs 主题

English | 简体中文

随变图标

更改和功能

  • 替换图标和标题为随变图标和标题;
  • 替换默认用户头像为火柴人头像;
  • 镜像仓库快速同步按钮;
  • MapleMono-NF-CN 字体;
  • 基于 Darkmode.js 的深色模式和切换按钮;
  • 基于 instant.page 的页面预加载功能。

使用方法

  1. 下载主题文件

    git clone --depth=1 https://github.com/swaybien/swb-gogs-theme.git || git clone --depth=1 https://git.pj568.eu.org/SwayBien/swb-gogs-theme.git
    
  2. 链接主题文件并重启服务

    cp -uvr swb-gogs-theme/public path/to/your/gogs/custom/public
    cp -uvr swb-gogs-theme/templates path/to/your/gogs/custom/templates
    # docker compose restart gogs
    
  3. 更新主题

    cd swb-gogs-theme
    git pull
    

贡献

贡献指北

许可协议

Creative Commons Attribution-ShareAlike 4.0 International License

鸣谢

项目

名称 协议 地址
darkmode.js MIT license Github、Website
instant.page MIT license Github、Website
maple-font OFL-1.1 license Github、Website