How to suppress blank line in Jekyll?

后端 未结 5 2003
梦谈多话
梦谈多话 2021-02-04 00:49

I use GitHub Pages for my blog, and am running into a problem with Jekyll. My post.html has a block like this:

{%    for testpost in site.posts   %}
{%                  


        
5条回答
  •  孤城傲影
    2021-02-04 01:36

    Since Liquid v4 (included in Jekyll from v3.5) there is a Whitespace control, which finally resolved case with blank line, white space, etc.

    Link to documentation: https://shopify.github.io/liquid/basics/whitespace/

提交回复
热议问题