Skip to content

Commit ccb482d

Browse files
committed
移除所有 Google Adsense
1 parent f156f5e commit ccb482d

11 files changed

Lines changed: 1 addition & 74 deletions

File tree

docs/.vuepress/enhanceApp.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ import config from './config'
22

33
export default ({ Vue }) => {
44
if (typeof document !== 'undefined') {
5-
const Ads = require('vue-google-adsense')
6-
Vue.use(require('vue-script2'))
7-
Vue.use(Ads.Adsense)
8-
Vue.use(Ads.InArticleAdsense)
9-
Vue.use(Ads.InFeedAdsense)
10-
Vue.use(Ads.AutoAdsense, { adClient: config.themeConfig.ads.client, isNewAdsCode: true })
5+
// TODO
116
}
127
}

docs/advance/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# 进阶用法
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## Hexo 注入代码
64

75
[Hexo 注入器](https://hexo.io/zh-cn/api/injector.html)是 Hexo 5 版本自身加入的一项新功能,所以在所有 Hexo 主题都是支持这个功能的。
@@ -97,8 +95,6 @@ hexo.extend.filter.register('theme_inject', function(injects) {
9795

9896
[hexo-admin](https://github.com/jaredly/hexo-admin) : 为 Hexo 搭建可视化管理页面
9997

100-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
101-
10298
## 加快网页加载
10399

104100
- 如果你的域名已备案,可以使用[七牛云](https://s.qiniu.com/N7beiu)、阿里云、腾讯云等大厂的 OSS 服务并绑定域名,将生成后的 public 目录下全部上传到 OSS,然后你不仅可以无服务器部署博客,加载速度也将无可比拟;

docs/contribute/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# 支持我们
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## 赞赏
64

75
如果你觉得这个项目有帮助,并愿意支持它的发展,可以通过以下方式支持我们的开源创作:
@@ -19,8 +17,6 @@
1917
</thead>
2018
</table>
2119

22-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
23-
2420
## 商业赞助
2521

2622
我们正在**寻求商业赞助**,如果贵司想在本页显著位置展示广告位(每月 6K+ Views 定向流量曝光),或者有其他赞助形式,可将联系方式发送邮件至 zkqiang#126.com (#替换为@)。

docs/en/advance/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Advance
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## Hexo Plugin
64

75
:::warning
@@ -20,8 +18,6 @@ All plugins are only recommended and can’t be sure they are fully compatible w
2018

2119
[hexo-admin](https://github.com/jaredly/hexo-admin) : an admin UI for Hexo
2220

23-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
24-
2521
### Faster Loading
2622

2723
1. For all the users, it is effective to use public CDN for the third-party lib, you can add it into `static_prefix` in **theme config**

docs/en/contribute/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Contribution
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## Code contribution
64

75
If it is the first time for you to have contribution, you can claim a small task on the [Issues](https://github.com/fluid-dev/hexo-theme-fluid/issues) to quickly participate in community contributions.
@@ -16,8 +14,6 @@ The following workflow participation contributions are recommended:
1614
5. Push the submission to the repository of the fork
1715
6. Create develop branch of pull request to fluid-dev/hexo-theme-fluid
1816

19-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
20-
2117
## Contributors
2218

2319
[![contributors](https://opencollective.com/hexo-theme-fluid/contributors.svg?width=890&button=false)](https://github.com/fluid-dev/hexo-theme-fluid/graphs/contributors)

docs/en/guide/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Guide
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## About this Guide
64

75
**This guide is only for partial configuration instructions, not for the all configs**, for specific configuration requirements, please refer to the comments in the file `_config.yml` at the path of the theme. For more help, Please write your questions at [issues](https://github.com/fluid-dev/hexo-theme-fluid/issues/new).
@@ -106,8 +104,6 @@ You can set `banner_mask_alpha` for every pages in **theme config** with a valid
106104
The banner of each post page can be set independently. You can read the config about the posts for more details.
107105
:::
108106

109-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
110-
111107
### Title of your Blog
112108

113109
The title is on the left side of the banner. It can be set by modifying the property `title` in file **site config**, which is also the title of the browser's tab.
@@ -149,8 +145,6 @@ menu:
149145
}
150146
```
151147

152-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
153-
154148
### Lazyload
155149

156150
Lazyload will make the image or comment plugin load only when it scrolls to visible, which can greatly improve the speed of loading your blog.
@@ -218,8 +212,6 @@ web_analytics:
218212
cnzz: # cnzz analysis's web_id,refer https://web.umeng.com/main.php?c=site&a=show
219213
```
220214

221-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
222-
223215
### Languages
224216

225217
Setting a different language in the **site config** will change the text of the theme:
@@ -417,8 +409,6 @@ Priority: Manually > Automatically.
417409
There are 3 lines works will display in index page, the rest will be hidden automatically.
418410
:::
419411

420-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
421-
422412
### Post Url Target
423413

424414
```yaml
@@ -612,8 +602,6 @@ code:
612602

613603
`lib`: Select the library to generate the highlight, options: highlightjs, prismjs, see the comments of the highlight configs in **theme config**
614604

615-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
616-
617605
### Comment
618606

619607
You can enable it in **theme config**:
@@ -897,8 +885,6 @@ $$
897885
- The custom page doesn't load math by default, you need to specify `math: true` into [front-matter](https://hexo.io/docs/front-matter) to ues it.
898886
:::
899887

900-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
901-
902888
### Mermaid
903889

904890
If you want to use [Mermaid](http://mermaid-js.github.io/mermaid/#/), you should enable it:
@@ -1028,8 +1014,6 @@ about:
10281014
- `tip`: display the tip when the mouse hovers over the icon
10291015
- `qrcode`: QR-code image, when using this field, clicking will not be directed, but hover QR-code
10301016

1031-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
1032-
10331017
### Comment
10341018

10351019
Enable comment plugin via the [front-matter](https://hexo.io/zh-cn/docs/front-matter) set `comment: bool` to enable the comment plugin, or set `comment: 'type'`to enable the specified comment plugin.
@@ -1072,8 +1056,6 @@ links:
10721056
- `avatar`: The avatar image of the site, can be omitted
10731057
- `default_avatar`: The default avatar of the site (replace only when the avatar is specified and fails to load)
10741058

1075-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
1076-
10771059
## Custom Page
10781060

10791061
### Create page

docs/en/icon/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Icons
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## Build-in Icons
64

75
There are some built-in social icons in the theme, all from [Iconfont](https://www.iconfont.cn/):
@@ -12,8 +10,6 @@ Just fill the beginning with 'icon-' into CSS class, eg: `iconfont icon-twitter-
1210

1311
The icons are mainly used in related pages, of course, you can also use them in any place by HTML.
1412

15-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
16-
1713
## Custom Icons
1814

1915
If you want to use other icons, you can set `iconfont` of **theme config** to include your own Iconfont or Font-Awesome, and then insert them to css class.

docs/en/start/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Start
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## Introduction
64

75
Developed by [Fluid-dev](https://github.com/fluid-dev), Fluid is an elegant Material-Design theme for Hexo.
@@ -99,8 +97,6 @@ git pull https://github.com/fluid-dev/hexo-theme-fluid.git master
9997

10098
3. Resolve code conflicts if any.
10199

102-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
103-
104100
## Code License
105101

106102
[GPL-V3](https://github.com/fluid-dev/hexo-theme-fluid/blob/master/LICENSE)

docs/guide/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# 配置指南
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## 关于指南
64

75
:::tip
@@ -124,8 +122,6 @@ banner_img: https://static.zkqiang.cn/example.jpg
124122
2. `fixed` 在移动端兼容性很差
125123
:::
126124

127-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
128-
129125
### 博客标题
130126

131127
页面左上角的博客标题,默认使用**站点配置**中的 `title`,这个配置同时控制着网页在浏览器标签中的标题。
@@ -167,8 +163,6 @@ menu:
167163
}
168164
```
169165

170-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
171-
172166
### 懒加载
173167

174168
懒加载又称延迟加载。开启后,当图片或评论插件滚动到可见范围内才会加载,可以大幅提高打开网页的速度。
@@ -281,8 +275,6 @@ OpenKounter 是基于 EdgeOne Pages + KV 的轻量计数服务,需要自行部
281275
如果参数填写错误或者接口异常,不会显示数据,请在浏览器控制台排查具体原因。
282276
:::
283277

284-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
285-
286278
### 语言配置
287279

288280
不同语言会影响一些主题自带的文字。
@@ -504,8 +496,6 @@ excerpt: 这是摘要
504496
无论哪种摘要都最多显示 3 行,当屏幕宽度不足时会隐藏部分摘要。
505497
:::
506498

507-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
508-
509499
### 文章跳转方式
510500

511501
```yaml
@@ -697,8 +687,6 @@ code:
697687

698688
`lib`: 选择生成高亮的库,可选项: highlightjs、prismjs,对应下面两组配置,高亮的配置说明具体见**主题配置**中的注释
699689

700-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
701-
702690
### 评论
703691

704692
开启评论需要在**主题配置**中开启并指定评论模块:
@@ -997,8 +985,6 @@ $$
997985
- 自定义页面默认不加载渲染,如需使用,需在 front-matter 中指定 `math: true`
998986
:::
999987

1000-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
1001-
1002988
### Mermaid 流程图
1003989

1004990
当需要使用 [Mermaid](http://mermaid-js.github.io/mermaid/#/) 渲染流程图时,可手动开启本功能:
@@ -1149,8 +1135,6 @@ about:
11491135
```
11501136
:::
11511137

1152-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
1153-
11541138
### 评论
11551139

11561140
开启评论的方式是通过在 [front-matter](https://hexo.io/zh-cn/docs/front-matter) 设置 `comment: bool` 来控制评论开关,或者通过 `comment: 'type'` 来开启指定的评论插件。
@@ -1195,8 +1179,6 @@ links:
11951179

11961180
友链页也可以使用自定义区域和评论,使用方式类似于文章页,具体见配置项与相关注释。
11971181

1198-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
1199-
12001182
## 自定义页面
12011183

12021184
### 创建页面

docs/icon/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# 图标
22

3-
<Adsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.slot is-new-ads-code="yes" class="side-ads"></Adsense>
4-
53
## 内置社交图标
64

75
主题内置了一些社交类图标,均来自 [Iconfont](https://www.iconfont.cn/),由于不支持公开展示,因此只能通过图片:
@@ -12,8 +10,6 @@
1210

1311
以上主要用在关于页中,当然你也可以通过插入 HTML 的方式用到主题的任何地方。
1412

15-
<InArticleAdsense :data-ad-client=$themeConfig.ads.client :data-ad-slot=$themeConfig.ads.inSlot is-new-ads-code="yes"></InArticleAdsense>
16-
1713
## 自定义图标
1814

1915
[Iconfont](https://www.iconfont.cn/)支持用户创建项目来管理和使用图标库,在 `图标管理-我的项目` 中即可管理和创建项目。将所需图标添加至购物车,再通过购物车添加至所创建的项目中。在项目中可以下载至本地与生成在线链接,Iconfont 支持在阿里云的 CDN 中生成 CSS 或 JS 文件用来调用。

0 commit comments

Comments
 (0)