Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

项目在子目录下,生成链接有重复 #46

Open
mapxn opened this issue Jun 12, 2019 · 1 comment
Open

项目在子目录下,生成链接有重复 #46

mapxn opened this issue Jun 12, 2019 · 1 comment

Comments

@mapxn
Copy link

mapxn commented Jun 12, 2019

hexo配置如下

url: http://192.168.16.166/cn
root: /cn/

实际生成图片地址如下
http://192.168.16.166/cn/cn/ssa.png
预期生成图片地址如下:
http://192.168.16.166/cn/ssa.png

ps:已安装hexo-abbrlink

@mapxn
Copy link
Author

mapxn commented Jun 12, 2019

目前我临时解决方法如下:

  • 1.在hexo 的_config.yml中定义root2: /
  • 2.修改插件index.js的58和59两行,把config.root修改为config.root2
  • 3.清缓存hexo clean ,问题解决enjoy!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant