feat(cookies): add Cookie consent banner (#355)

This commit is contained in:
Dillon
2020-05-13 21:19:39 +08:00
committed by GitHub
parent 8d491509e0
commit 0a9ec97450
32 changed files with 237 additions and 44 deletions

View File

@@ -604,6 +604,15 @@ Please open the code block below to view the complete sample configuration :(far
# server url for your tracker if you're self hosting
server = ""
# {{< version 0.2.7 >}} Cookie consent config
[params.cookieconsent]
enable = true
# text strings used for Cookie consent banner
[params.cookieconsent.content]
message = ""
dismiss = ""
link = ""
# {{< version 0.2.7 changed >}} CDN config for third-party library files
[params.cdn]
# CDN data file name, disabled by default

View File

@@ -609,6 +609,15 @@ Please open the code block below to view the complete sample configuration :(far
# server url for your tracker if you're self hosting
server = ""
# {{< version 0.2.7 >}} Cookie consent config
[params.cookieconsent]
enable = true
# text strings used for Cookie consent banner
[params.cookieconsent.content]
message = ""
dismiss = ""
link = ""
# {{< version 0.2.7 changed >}} CDN config for third-party library files
[params.cdn]
# CDN data file name, disabled by default

View File

@@ -607,6 +607,15 @@ hugo
# 自行托管追踪器时的主机路径
server = ""
# {{< version 0.2.7 >}} Cookie 许可配置
[params.cookieconsent]
enable = true
# 用于 Cookie 许可横幅的文本字符串
[params.cookieconsent.content]
message = ""
dismiss = ""
link = ""
# {{< version 0.2.7 changed >}} 第三方库文件的 CDN 设置
[params.cdn]
# CDN 数据文件名称, 默认不启用