2012-06-04 3 views
0

나는 Octopress를 사용하여 블로그를 작성하고 있습니다. 그러나 원래는 Tex를 지원하지 않았기 때문에 온라인에서 몇 가지 지침을 찾았습니다. 결국, 나는 텍사스 & markdown을 사용하지 못했습니다. atom.xml의 액체 예외

이 문제가 더 악화하려면, 다음과 같은 문제가 발생합니다
[email protected]:~/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 
[email protected]:~/blog/octopress$` 

지금 나는 그것을 해결하는 방법을 모른다.

diff 나는 모든 파일을 /octopress/octopress.bk으로 만들려고했습니다. 결국
, 나는 내가 문제가 발생할 \{\{\{ \}\}\}을 썼다 내가 *.markdown.

에서 잘못된 문법을 사용하고 있음을 찾을 수 있습니다. 이제 해결했습니다.

답변

0

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> 
+0

내가 노력에'/ octopress'와'/ octopress.bk''에있는 모든 파일을 diff'. 결국 나는 * .markdown에서 잘못된 문법을 사용했다. – luoluo