当前位置: 首页 > 文档资料 > Gitea 中文文档 >

Adding Legal Pages

优质
小牛编辑
134浏览
2023-12-01

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:

<a class="item" href="{{AppSubUrl}}/privacy.html">Privacy Policy</a>

Restart Gitea to see the changes.