How to suppress blank line in Jekyll?

后端 未结 5 2005
梦谈多话
梦谈多话 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:33

    How about

    {{ page.content | escape | strip_newlines }}
    

提交回复
热议问题