1.0.1 • Published 4 months ago

hexo-aliyun-cdn-refresh v1.0.1

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
4 months ago

安装

npm install hexo-aliyun-cdn-refresh

使用

在 hexo 或主题的配置文件中添加如下内容即可启用插件:

hacr:
  # 是否启用插件
  enable: true
  # 是否在发布后自动执行脚本
  auto_push: true
  # 网站地址
  site: https://byer.top/
  Access:
  # 阿里云CDN Access Token
    accessKeyId: L##########################2
    accessKeySecret: 9######################EH
  RefreshOpts:
    # 刷新类型 refresh刷新 push预热 both刷新cdn后预热
    type: refresh
    # 刷新目录directory 刷新文件file并在_data中创建refresh-list.json文件内容为["https://byer.top/1.png","https://byer.top/2.png"]
    method: file

输入hexo hacr手动刷新cdn或者将配置改为auto_push: true

1.0.1

4 months ago

1.0.0

4 months ago