diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/advanced/adding-legal-pages.en-us.md | 38 | ||||
-rw-r--r-- | docs/content/doc/advanced/customizing-gitea.en-us.md | 4 |
2 files changed, 41 insertions, 1 deletions
diff --git a/docs/content/doc/advanced/adding-legal-pages.en-us.md b/docs/content/doc/advanced/adding-legal-pages.en-us.md new file mode 100644 index 0000000000..b13337a4ab --- /dev/null +++ b/docs/content/doc/advanced/adding-legal-pages.en-us.md @@ -0,0 +1,38 @@ +--- +date: "2019-12-28" +title: "Adding Legal Pages" +slug: adding-legal-pages +weight: 9 +toc: false +draft: false +menu: + sidebar: + parent: "advanced" + name: "Adding Legal Pages" + identifier: "adding-legal-pages" + weight: 9 +--- + +Some jurisdictions (such as EU), requires certain legal pages (e.g. Privacy Policy) to be added to website. Follow these steps to add them to your Gitea instance. + +## Getting Pages + +Gitea source code ships with sample pages, available in `contrib/legal` directory. Copy them to `custom/public/`. For example, to add Privacy Policy: + +``` +wget -O /path/to/custom/public/privacy.html https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/legal/privacy.html.sample +``` + +Now you need to edit the page to meet your requirements. In particular you must change the email addresses, web addresses and references to "Your Gitea Instance" to match your situation. + +You absolutely must not place a general ToS or privacy statement that implies that the gitea project is responsible for your server. + +## Make it Visible + +Create or append to `/path/to/custom/templates/custom/extra_links_footer.tmpl`: + +```go +<a class="item" href="{{AppSubUrl}}/privacy.html">Privacy Policy</a> +``` + +Restart Gitea to see the changes. diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md index 52d57f6764..80aa09f5f3 100644 --- a/docs/content/doc/advanced/customizing-gitea.en-us.md +++ b/docs/content/doc/advanced/customizing-gitea.en-us.md @@ -9,8 +9,8 @@ menu: sidebar: parent: "advanced" name: "Customizing Gitea" - weight: 9 identifier: "customizing-gitea" + weight: 9 --- # Customizing Gitea @@ -82,6 +82,8 @@ just place it under your "custom/public/" directory (for instance `custom/public To match the current style, the link should have the class name "item", and you can use `{{AppSubUrl}}` to get the base URL: `<a class="item" href="{{AppSubUrl}}/impressum.html">Impressum</a>` +For more information, see [Adding Legal Pages](https://docs.gitea.io/en-us/adding-legal-pages). + You can add new tabs in the same way, putting them in `extra_tabs.tmpl`. The exact HTML needed to match the style of other tabs is in the file `templates/repo/header.tmpl` |