我正试图在杰基尔工作的帖子摘录。发生的事情是说帖子前面的status = 1
有效,但把它放在_config.yml中是行不通的。
当然,我可以为每个帖子做这个,但我宁愿让全局配置工作。 :)
我的配置文件:
excerpt_separator: <!--more-->
这有效:
baseurl: http://joycetipping.com/blog
excerpt_separator: <!--more-->
kramdown:
input: GFM
这不起作用:
---
layout: post
title: Test!!
excerpt_separator: <!--more-->
---
Stuff, stuff, stuff, stuff, stuff, stuff.
More stuff, more stuff, more stuff, more stuff.
<!--more-->
Not in the excerpt, not in the excerpt, not in the excerpt.
我在Jekyll 3.1.2。
有什么想法吗?提前谢谢!