Skip to content

Commit

Permalink
Custom template
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Feb 18, 2020
1 parent 59cda49 commit a0849b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions en-US/features/custom_template.md
Expand Up @@ -15,6 +15,8 @@ An example is to customize the look and contents of the home page:

:warning: Edits to the custom HTML templates **require restarting Gogs**.

:warning: Override for email templates is disabled when `[server] LOAD_ASSETS_FROM_DISK = true`

## Override static files

You can override static files (CSS, JavaScript, images, etc.) by creating a customized version under `custom/public/` directory. Your version of static files will survive code updates, but you may want to keep tabs on them in case functionality changes. Be careful when overriding static files as you may break things in future releases.
Expand Down
2 changes: 2 additions & 0 deletions zh-CN/features/custom_template.md
Expand Up @@ -15,6 +15,8 @@ name: 自定义模板

:warning: 所有针对自定义模板的修改都**需要重启 Gogs 实例**

:warning: 当用户配置 `[server] LOAD_ASSETS_FROM_DISK = true` 时,邮件模板无法被重载

## 重载静态文件

用户可以通过在 `custom/public/` 目录下创建一个自定义版本的副本实现静态文件重载(CSS、JavaScript、图片等等),该文件不会因为版本升级而受到影响,但可以会因为改动过大导致与后续版本不兼容。
Expand Down

0 comments on commit a0849b9

Please sign in to comment.