Skip to content

Commit a0820e0

Browse files
strktechknowlogick
authored andcommitted
Add section about customizing mail (#7419)
See #6037
1 parent b84a251 commit a0820e0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ Apart from `extra_links.tmpl` and `extra_tabs.tmpl`, there are other useful temp
9898
- `body_outer_post.tmpl`, before the bottom `<footer>` element.
9999
- `footer.tmpl`, right before the end of the `<body>` tag, a good place for additional Javascript.
100100

101+
## Customizing Gitea mails
102+
103+
The `custom/templates/mail` folder allows changing the body of every mail of Gitea.
104+
Templates to override can be found in the
105+
[`templates/mail`](https://github.com/go-gitea/gitea/tree/master/templates/mail)
106+
directory of Gitea source.
107+
Override by making a copy of the file under `custom/templates/mail` using a
108+
full path structure matching source.
109+
110+
Any statement contained inside `{{` and `}}` are Gitea's template
111+
syntax and shouldn't be touched without fully understanding these components.
112+
113+
114+
101115
## Adding Analytics to Gitea
102116

103117
Google Analytics, Matomo (previously Piwik), and other analytics services can be added to Gitea. To add the tracking code, refer to the `Other additions to the page` section of this document, and add the JavaScript to the `custom/templates/custom/header.tmpl` file.

0 commit comments

Comments
 (0)