diff --git a/conf/app.yml b/conf/app.yml index a4ba39a..5415ade 100644 --- a/conf/app.yml +++ b/conf/app.yml @@ -11,10 +11,10 @@ eiblogapp: host: example.com staticversion: 1 # 静态文件版本 hotwords: # 热搜词 - - docker - - mongodb - - curl - - dns + - docker + - mongodb + - curl + - dns general: # 常规配置 pagenum: 10 # 首页展示文章数量 pagesize: 20 # 管理界面 @@ -32,6 +32,7 @@ eiblogapp: tid: UA-xxxxxx-1 v: "1" t: pageview + adsense: qiniu: # 七牛OSS bucket: eiblog domain: st.deepzz.com @@ -45,8 +46,8 @@ eiblogapp: feedrpc: # rss ping feedrurl: https://deepzz.superfeedr.com/ pingrpc: - - http://ping.baidu.com/ping/RPC2 - - http://rpc.pingomatic.com/ + - http://ping.baidu.com/ping/RPC2 + - http://rpc.pingomatic.com/ # 数据初始化操作,可到博客后台修改 account: username: deepzz # *后台登录用户名 diff --git a/pkg/config/config.go b/pkg/config/config.go index f125e1f..69637b9 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -66,10 +66,11 @@ type Twitter struct { // Google analytics type Google struct { - URL string `yaml:"url"` - Tid string `yaml:"tid"` - V string `yaml:"v"` - T string `yaml:"t"` + URL string `yaml:"url"` + Tid string `yaml:"tid"` + V string `yaml:"v"` + T string `yaml:"t"` + AdSense string `yaml:"adsense"` } // Qiniu oss diff --git a/pkg/core/eiblog/page/fe.go b/pkg/core/eiblog/page/fe.go index 482fd54..1ed4bec 100644 --- a/pkg/core/eiblog/page/fe.go +++ b/pkg/core/eiblog/page/fe.go @@ -39,6 +39,7 @@ func baseFEParams(c *gin.Context) gin.H { "Twitter": config.Conf.EiBlogApp.Twitter, "Qiniu": config.Conf.EiBlogApp.Qiniu, "Disqus": config.Conf.EiBlogApp.Disqus, + "AdSense": config.Conf.EiBlogApp.Google.AdSense, "Version": version, } } diff --git a/website/homeLayout.html b/website/homeLayout.html index 7436865..d085757 100644 --- a/website/homeLayout.html +++ b/website/homeLayout.html @@ -1 +1 @@ -
{{.SubTitle}}
{{.SubTitle}}