Ruby atom.xml中的液体异常
我正在用Octopress写博客。但最初它不支持Tex,所以我在网上寻求一些指导。最后,我没有使用特克斯和降价 更糟糕的是,出现以下问题:Ruby atom.xml中的液体异常,ruby,regex,liquid,octopress,Ruby,Regex,Liquid,Octopress,我正在用Octopress写博客。但最初它不支持Tex,所以我在网上寻求一些指导。最后,我没有使用特克斯和降价 更糟糕的是,出现以下问题: lo@lo:~/blog/octopress$ rake generate ## Generating Site with Jekyll unchanged sass/screen.scss unchanged sass/syntax/syntax.scss unchanged sass/bootstrap/responsive.scss unchanged
lo@lo:~/blog/octopress$ rake generate
## Generating Site with Jekyll
unchanged sass/screen.scss
unchanged sass/syntax/syntax.scss
unchanged sass/bootstrap/responsive.scss
unchanged sass/bootstrap/bootstrap.scss
Configuration from /home/lo/blog/octopress/_config.yml
Building site: source -> public
Liquid Exception: Variable '{{' was not properly terminated with regexp: /\}\}/ in atom.xml
Liquid Exception: Variable '{{' was not properly terminated with regexp: /\}\}/ in atom.xml
Liquid Exception: Variable '{{' was not properly terminated with regexp: /\}\}/ in atom.xml
Successfully generated site: source -> public
lo@lo:~/blog/octopress$`
现在我不知道如何修复它
我试图区分
/octopress
和/octopress.bk
中的所有文件
最后,我发现我在*.markdown.
我写了\{\{\}
,这导致了这个问题。
现在我解决了。您的atom.xml文件似乎已更改。您可以在包含网站的文件夹的根目录中找到它。您需要找到的是不匹配的{{tag}。最有可能的是其中一个括号丢失了,比如一个{{{和一个}将其关闭 以下是默认的atom.xml文件,您可以将其用作示例:
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Your Title</title>
<link href="http://www.example.com/atom.xml" rel="self"/>
<link href="http://www.example.com/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://www.example.com/</id>
<author>
<name>Your Name/name>
<email>Your Email</email>
</author>
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="http://www.example.com{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>http://www.example.com{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>
---
布局:无
---
你的头衔
{{site.time | date_to_xmlschema}}
http://www.example.com/
您的姓名/姓名>
你的电子邮件
{site.posts%中的post为%s}
{{post.title}}
{{post.date | date_to_xmlschema}}
http://www.example.com{{post.id}
{{post.content | xml_escape}}
{%endfor%}
我试图将/octopress
和/octopress.bk
中的所有文件区分开来。最后,我发现我在*.markdown中使用了错误的语法。