gyk001 / hexo-qiniu-sync

Hexo七牛同步插件
MIT License
356 stars 41 forks source link

offline设为true后重新发布图片路径全部不对了 #44

Open luozhihua opened 7 years ago

luozhihua commented 7 years ago

我把offline设为true之后,执行hexo g && hexo deploy 然后所有图片的地址变成/static/images/xxx/yyy.jpg了, 本地使用hexo server浏览是好的,但是服务器的根目录根本不存在static目录,导致图片全部404.

luozhihua commented 7 years ago

难道设为offline: true后我要手动上传static目录吗?

luozhihua commented 7 years ago

我觉得这个static目录应该创建在/source/目录下面,而不是网站根目录,这样即使offline了,hexo deploy时也会自动上传/source/下面的static目录以及里面的静态资源文件,而现在只是做了一个static目录的链接,导致Deploy时,static目录以及里面的子文件和子目录无法自动上传。

imbajin commented 7 years ago

bro,友情提示你hexo g -d 可以连在一起用,不需要分开. hexo d -g也是等价的. 再就是作者很久没来了,我也在等他,好像在搬家... 你可以看看我的问题帖,感觉你比我入门的还少一点....有问题可以跟我交流额,mail,企鹅,whatsap都写

lozn00 commented 7 years ago

dirPrefix: static urlPrefix: http://bucket_name.qiniudn.com/static up_host: http://upload.qiniu.com local_dir: static update_exist: true image: folder: images extend: js: folder: js css: folder: css 请问到底怎么弄?? 我发现地址是显示错误的

lozn00 commented 7 years ago

赵奕欢啦 为毛是这样的。。 我的七牛里面并没有发现 图片上传 static文件夹在项目根目录下 之前在posts下