BUG:博客搭建在子目录下,链接全部指向了根目录
note4 opened this issue · comments
a story commented
_config.yml
url: http://pinwu.pub
root: /url
permalink: item/:title/
atom.xml
http://pinwu.pub/url/atom.xml
<entry>
<title>设计软件</title>
<link href="http://pinwu.pub/item/design-soft/"/>
<id>http://pinwu.pub/item/design-soft/</id>
正确的link应该是http://pinwu.pub/url/item/design-soft/
denghailong commented
我也有这个问题,请问您解决了吗?
Mimi commented
Hexo 的 _config.yml
中应该有这样一句提示
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
因此,像这样的配置
url: http://pinwu.pub
root: /url
是非法的
应改为
url: http://pinwu.pub/url
root: /url/