From 09bd739ea5cf3bc3fc37cec958133090c9825f6e Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 12 Apr 2022 13:48:43 +0800 Subject: [PATCH] cookie --- config.toml | 3 ++ layouts/partials/custom-footer.html | 50 ++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 25b0df4..23edf37 100644 --- a/config.toml +++ b/config.toml @@ -74,6 +74,9 @@ weight = 3 languageName = "简体中文" landingPageName = " 首页" +[Languages.zh-cn.params] +disable_cookie = true + [Languages.zh-tw] title = "RustDesk文檔" weight = 3 diff --git a/layouts/partials/custom-footer.html b/layouts/partials/custom-footer.html index e70e3e5..69e8daf 100644 --- a/layouts/partials/custom-footer.html +++ b/layouts/partials/custom-footer.html @@ -6,4 +6,52 @@ gtag('js', new Date()); gtag('config', 'G-WCJMDEZ618'); - \ No newline at end of file + + +{{ if not .Site.Params.disable_cookie }} + + + +{{ end }}