Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
4e9ed12f
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4e9ed12f
编写于
7月 25, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: Update docs & README
上级
1ae80792
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
73 addition
and
0 deletion
+73
-0
README.md
README.md
+4
-0
README_en_US.md
README_en_US.md
+4
-0
docs/zh-CN/advanced/third-part.md
docs/zh-CN/advanced/third-part.md
+65
-0
未找到文件。
README.md
浏览文件 @
4e9ed12f
...
...
@@ -12,12 +12,16 @@
<a
href=
"https://github.com/liuyib/hexo-theme-stun/blob/master/LICENSE"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"GitHub"
src=
"https://img.shields.io/github/license/liuyib/hexo-theme-stun.svg?style=flat-square"
>
</a>
<br>
<a
href=
"https://hexo.io/zh-cn/"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"hexo"
src=
"https://img.shields.io/badge/hexo-%3E%3D3.0-blue.svg?style=flat-square"
>
</a>
<a
href=
"https://github.com/liuyib/hexo-theme-stun/releases"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"GitHub release"
src=
"https://img.shields.io/github/release-pre/liuyib/hexo-theme-stun.svg?style=flat-square"
>
</a>
<a
href=
"https://gitter.im/liuyib/hexo-theme-stun?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"Gitter"
src=
"https://badges.gitter.im/liuyib/hexo-theme-stun.svg?style=flat-square"
>
</a>
</p>
[
English
](
https://github.com/liuyib/hexo-theme-stun/blob/master/README_en_US.md
)
|
[
中文简体
](
https://github.com/liuyib/hexo-theme-stun/blob/master/README.md
)
...
...
README_en_US.md
浏览文件 @
4e9ed12f
...
...
@@ -12,12 +12,16 @@
<a
href=
"https://github.com/liuyib/hexo-theme-stun/blob/master/LICENSE"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"GitHub"
src=
"https://img.shields.io/github/license/liuyib/hexo-theme-stun.svg?style=flat-square"
>
</a>
<br>
<a
href=
"https://hexo.io/zh-cn/"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"hexo"
src=
"https://img.shields.io/badge/hexo-%3E%3D3.0-blue.svg?style=flat-square"
>
</a>
<a
href=
"https://github.com/liuyib/hexo-theme-stun/releases"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"GitHub release"
src=
"https://img.shields.io/github/release/liuyib/hexo-theme-stun.svg?style=flat-square"
>
</a>
<a
href=
"https://gitter.im/liuyib/hexo-theme-stun?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"
target=
"_blank"
rel=
"noopener noreferrer"
>
<img
alt=
"Gitter"
src=
"https://badges.gitter.im/liuyib/hexo-theme-stun.svg?style=flat-square"
>
</a>
</p>
[
English
](
https://github.com/liuyib/hexo-theme-stun/blob/master/README_en_US.md
)
|
[
中文简体
](
https://github.com/liuyib/hexo-theme-stun/blob/master/README.md
)
...
...
docs/zh-CN/advanced/third-part.md
浏览文件 @
4e9ed12f
...
...
@@ -437,3 +437,68 @@ Copy-tex 是 KaTex 的插件,当启用这个插件之后,你只需要单击
效果如下:
![](https://raw.githubusercontent.com/liuyib/picBed/master/hexo-theme-stun/doc/20190720160555.png)
## 广告
广告接入。
### 谷歌广告
首先登录谷歌广告[官网](https://www.google.com/adsense),选择添加广告,在给你的一段代码中找到 `client_id`,通常以 `ca-pub-` 开头。然后修改主题配置文件:
```
yaml
google_adsense:
# 是否启用
enable: false
# 如果和你的代码中的地址不一样,请更换
js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
# 填写你的 client-id
client:
enable_page_level_ads: true
```
## 特效
### Ribbon
修改主题配置文件:
```
yaml
canvas_ribbon:
# 是否启用
enable: false
# ribbon 的宽度
size: 300
# ribbon 的透明度
alpha: 0.6
# ribbon 的层级
zIndex: -1
```
效果如下:
![](https://raw.githubusercontent.com/liuyib/picBed/master/hexo-theme-stun/doc/20190725220144.png)
### Particle / Nest
修改主题配置文件:
```
yaml
canvas_nest:
# 是否启用
enable: false
# 是否在移动端显示
onmobile: true
# 线条的颜色(RGB 值,请使用 "," 分隔)
color: "0,0,0"
# 线条的透明度
opacity: 0.6
# 线条数目
count: 99
# 效果的层级
zIndex: -1
```
效果如下:
![](https://raw.githubusercontent.com/liuyib/picBed/master/hexo-theme-stun/doc/20190725220344.png)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录