增加图片点击放大和图片cdn功能

This commit is contained in:
Asura
2020-08-19 08:04:05 +08:00
committed by 飞雪无情
parent a9495b21a3
commit 06b17670e7
4 changed files with 61 additions and 0 deletions
+23
View File
@@ -37,6 +37,8 @@ Maupassant theme, ported to Hugo.
21. 文章自定义摘要
22. 自定义广告支持
23. 自定义备案信息
24. 自定义图片CDN
25. 图片点击放大
## 下载安装
@@ -214,6 +216,27 @@ type: archives
以上配置中的备案信息要换成自己的
#### 图片点击放大
将会引入jquery.js 和 fancybox 的css和js
```toml
[params]
fancybox = true
```
#### 图片CDN
将会在mark中引入的图片src前面加上设置的host, 有http前缀的路径不会在前面加入host
注意: 路径后面不要带/
> 可直接使用jsdelivr加速 后面跟上github仓库即可
```toml
[params.image_cdn]
enable = true
Host = "https://cdn.jsdelivr.net/gh/user/user.github.io"
```
#### Disqus
该主题支持Disqus评论,如果要启用Disqus,可以在`config.toml`里添加如下配置即可.