feat(home): add custom content for home page (#248)

This commit is contained in:
Dillon
2020-04-22 17:50:30 +08:00
committed by GitHub
parent a0ab272f7d
commit 3c38d54a87
20 changed files with 148 additions and 47 deletions

View File

@@ -503,6 +503,22 @@ Note that some of these parameters are explained in details in other sections of
pinterest = ""
baidu = ""
# {{< version 0.2.0 >}} Analytics config
[params.analytics]
enable = false
# Google Analytics
[params.analytics.google]
id = ""
# whether to anonymize IP
anonymizeIP = true
# whether to use cookie
cookie = false
# Fathom Analytics
[params.analytics.fathom]
id = ""
# server url for your tracker if you're self hosting
server = ""
# CSS and JS Files CDN config
[params.cdn]
# {{< version 0.2.0 >}} {{< link "https://github.com/necolas/normalize.css" "normalize.css" >}}@8.0.1
@@ -605,8 +621,11 @@ Note that some of these parameters are explained in details in other sections of
# {{< link "https://gohugo.io/about/hugo-and-gdpr/" "Privacy config" >}}
[privacy]
# {{< version 0.2.0 deleted >}} privacy of the Google Analytics (replaced by params.analytics.google)
[privacy.googleAnalytics]
anonymizeIP = true
# ...
[privacy.twitter]
enableDNT = true
[privacy.youtube]
privacyEnhanced = true

View File

@@ -508,6 +508,22 @@ Note that some of these parameters are explained in details in other sections of
pinterest = ""
baidu = ""
# {{< version 0.2.0 >}} Analytics config
[params.analytics]
enable = false
# Google Analytics
[params.analytics.google]
id = ""
# whether to anonymize IP
anonymizeIP = true
# whether to use cookie
cookie = false
# Fathom Analytics
[params.analytics.fathom]
id = ""
# server url for your tracker if you're self hosting
server = ""
# CSS and JS Files CDN config
[params.cdn]
# {{< version 0.2.0 >}} {{< link "https://github.com/necolas/normalize.css" "normalize.css" >}}@8.0.1
@@ -610,8 +626,11 @@ Note that some of these parameters are explained in details in other sections of
# {{< link "https://gohugo.io/about/hugo-and-gdpr/" "Privacy config" >}}
[privacy]
# {{< version 0.2.0 deleted >}} privacy of the Google Analytics (replaced by params.analytics.google)
[privacy.googleAnalytics]
anonymizeIP = true
# ...
[privacy.twitter]
enableDNT = true
[privacy.youtube]
privacyEnhanced = true

View File

@@ -506,6 +506,22 @@ hugo
pinterest = ""
baidu = ""
# {{< version 0.2.0 >}} 网站分析配置
[params.analytics]
enable = false
# Google Analytics
[params.analytics.google]
id = ""
# 是否匿名化用户 IP
anonymizeIP = true
# 是否使用 cookie
cookie = false
# Fathom Analytics
[params.analytics.fathom]
id = ""
# 自行托管追踪器时的主机路径
server = ""
# CSS 和 JS 文件的 CDN 设置
[params.cdn]
# {{< version 0.2.0 >}} {{< link "https://github.com/necolas/normalize.css" "normalize.css" >}}@8.0.1
@@ -608,8 +624,11 @@ hugo
# {{< link "https://gohugo.io/about/hugo-and-gdpr/" "隐私信息配置" >}}
[privacy]
# {{< version 0.2.0 deleted >}} Google Analytics 相关隐私 (被 params.analytics.google 替代)
[privacy.googleAnalytics]
anonymizeIP = true
# ...
[privacy.twitter]
enableDNT = true
[privacy.youtube]
privacyEnhanced = true