summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2019-07-11 07:27:57 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-07-11 01:27:57 -0400
commita0820e09fbf78f84722b44563b5f44a92a8a5a0e (patch)
treecb85672992496e285a2eef9a00916b662e515db9 /docs
parentb84a251fca78784682d49e3699eaae51203f8ffd (diff)
downloadgitea-a0820e09fbf78f84722b44563b5f44a92a8a5a0e.tar.gz
gitea-a0820e09fbf78f84722b44563b5f44a92a8a5a0e.zip
Add section about customizing mail (#7419)
See https://github.com/go-gitea/gitea/issues/6037
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/advanced/customizing-gitea.en-us.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md
index 69cf58b3bf..460ea61eac 100644
--- a/docs/content/doc/advanced/customizing-gitea.en-us.md
+++ b/docs/content/doc/advanced/customizing-gitea.en-us.md
@@ -98,6 +98,20 @@ Apart from `extra_links.tmpl` and `extra_tabs.tmpl`, there are other useful temp
- `body_outer_post.tmpl`, before the bottom `<footer>` element.
- `footer.tmpl`, right before the end of the `<body>` tag, a good place for additional Javascript.
+## Customizing Gitea mails
+
+The `custom/templates/mail` folder allows changing the body of every mail of Gitea.
+Templates to override can be found in the
+[`templates/mail`](https://github.com/go-gitea/gitea/tree/master/templates/mail)
+directory of Gitea source.
+Override by making a copy of the file under `custom/templates/mail` using a
+full path structure matching source.
+
+Any statement contained inside `{{` and `}}` are Gitea's template
+syntax and shouldn't be touched without fully understanding these components.
+
+
+
## Adding Analytics to Gitea
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.