Octopress博客 - atom.xml生成 - 实体''没有定义的

时间:2016-01-18 14:18:31

标签: jekyll blogs octopress

我正在尝试将现有的Octopress博客重新设置为新PC。

当我生成页面时。 生成一个atom.xml,第一行包含以下内容。

当我点击浏览器时出现错误:

This page contains the following errors: error on line 1 at column 28:
Entity 'ldquo' not defined Below is a rendering of the page up to the
first error.

我的_config.yml文件包含:

 subscribe_rss: /atom.xml
 subscribe_email:
 root: /
 permalink: /blog/:year-:month-:day/:title/
 source: source
 destination: public    
 plugins: plugins
 code_dir: downloads/code
 category_dir: blog/categories
 markdown: rdiscount
 rdiscount:
   extensions:
     - autolink
     - footnotes
     - smart
 highlighter: pygments

我想我知道'由于rdiscount智能扩展,字符被更改为ldquo。但如果是这样,我不应该在浏览器上收到错误。 我很迷惑。任何帮助都会很棒。

如果我删除了'smart'扩展,然后生成的atom.xml不包含> ,由于它再次失败并抛出一些其他错误。

请帮忙

此处还提到: https://github.com/imathis/octopress/issues/1759

1 个答案:

答案 0 :(得分:0)

我不认为它是你的配置文件 尝试更改标记引擎,看看它是否仍然显示错误。

正如我所看到的那样,引擎会替换它们,因为我看不到你的代码很难找到确切的问题。

更换降价配置并再次测试。