杰基尔没有正确阅读页面标题

时间:2013-09-06 03:49:31

标签: jekyll

我在更新到最新版本的Jekyll后遇到了一个新的错误,它给了我一个

以下是运行jekyll build后错误消息的一部分:

___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Bad block-level HTML:
| |#<MaRuKu::Exception: Error: Malformed: tag <p> closes <a>
| |HTML READER
| | state=inside_element match="</p>"
| |Tag stack = ["ul", "li", "a"]
| |Before:
| ||<ul class="compact recent">
| ||<li>
| ||    <a href="/blog/hello-world.html" title="<p>Hello everyone&#8212;just getting    the website set up, so it might take a while for more to appear here.</p>
| |After:
| ||">Hello world!</a>

有关帖子包括:

--- 
layout: blog-post
title: "Hello world!"
published: true
---

Hello everyone---just getting the website set up, so it might take a while for more to appear here.

Check back later for information about my research, papers, etc.

当遇到错误的页面正在使用时:

<ul class="compact recent">
{% for post in site.categories.blog limit:3 %}
<li>
    <a href="{{ post.url }}" title="{{ post.excerpt }}">{{ post.title }}</a>
    <span class="date">{{ post.date | date_to_string }}</span> 
</li>
{% endfor %}
</ul>

为什么没有正确获得标题的任何想法?这在jekyll的早期版本中运行良好。

1 个答案:

答案 0 :(得分:0)

删除title属性,并确保已发布的代码块被前一个文本用空行分隔,修复了此问题。