更新到最新版本的 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—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 中运行良好。