环境 Ghost博客 版本大于1.0 qn-ghost插件 Github地址 使用 首先你当然要有Ghost博客啦。 进入你的博客安装目录 在/content 目录下新建一个文件夹adapters ,再在其中新建一个文件夹storage cd /你的博客目录/content/adapters/storagegit clone https://github.com/Minwe/qn-store.git cd qn-storenpm install
这样插件就已经安装成功了,以为就这样结束了? 还差最后一部。 在你的Ghost博客目录下找到你的配置文件。 插入下述代码后 ghost restart 重启你的博客 "storage": { "active": "qn-store", "qn-store": { "accessKey": "your access key", #在七牛云里面找,具体请百度 "secretKey": "your secret key", "bucket": "your bucket name", #你的对象储存名称 "origin": "http://xx.xx.xx.glb.clouddn.com", #你对象储存的域名 "fileKey": { "safeString": true, "prefix": "YYYYMM/" } } },
|