0
0
mirror of https://gitea.com/gitea/docs.git synced 2025-05-30 10:20:45 +00:00
Files
appleboy dbfa0ba454 docs: add zh-tw folder (#195)
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/195
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: appleboy <appleboy.tw@gmail.com>
Co-committed-by: appleboy <appleboy.tw@gmail.com>
2025-04-04 23:28:16 +00:00

1.1 KiB
Raw Permalink Blame History

date, slug, sidebar_position, aliases
date slug sidebar_position aliases
2019-12-28 adding-legal-pages 110
/zh-tw/adding-legal-pages

添加法律頁面

某些司法管轄區(例如歐盟)要求在網站上添加某些法律頁面(例如隱私政策)。請按照以下步驟將它們添加到您的 Gitea 實例中。

獲取頁面

Gitea 源代碼附帶示例頁面,位於 contrib/legal 目錄中。將它們複製到 custom/public/assets/。例如,要添加隱私政策:

wget -O /path/to/custom/public/assets/privacy.html https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/legal/privacy.html.sample

現在您需要編輯頁面以符合您的要求。特別是您必須更改電子郵件地址、網站地址和“您的 Gitea 實例”的引用以匹配您的情況。

您絕對不能放置一般的服務條款或隱私聲明,暗示 Gitea 項目對您的服務器負責。

使其可見

創建或附加到 /path/to/custom/templates/custom/extra_links_footer.tmpl

<a class="item" href="{{AppSubUrl}}/assets/privacy.html">隱私政策</a>

重新啟動 Gitea 以查看更改。