[英]jekyll excerpt gives full post irrespective of first paragraph
In index.html
I used {{ post.excerpt }}
in my jekyll site. 在
index.html
我在{{ post.excerpt }}
网站中使用了{{ post.excerpt }}
。 This tag gives full content of post in index page instead of first paragraph. 此标记提供索引页面中文章的完整内容,而不是第一段。 Did I miss any thing.
我有错过任何事情吗? I didn't use
<!-- more -->
in post and front matter or config file as excerpt seperator. 我没有在帖子和封面或配置文件中使用
<!-- more -->
more- <!-- more -->
作为摘录分隔符。
You can access a snippet of a posts's content by using excerpt variable on a post.
您可以使用帖子的摘录变量来访问帖子内容的摘要。 By default this is the first paragraph of content in the post, however it can be customized by setting a excerpt_separator variable in front matter or _config.yml.
默认情况下,这是文章中的第一段内容,但是可以通过在前件或_config.yml中设置excerpt_separator变量来对其进行自定义。
Source: https://jekyllrb.com/docs/posts/#post-excerpts 资料来源: https : //jekyllrb.com/docs/posts/#post-excerpts
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.