hexojs / hexo-generator-feed

Feed generator for Hexo.

Home Page:http://hexo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG:博客搭建在子目录下,链接全部指向了根目录

note4 opened this issue · comments

_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/

我也有这个问题,请问您解决了吗?

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/