【发布时间】:2013-07-19 05:23:19
【问题描述】:
我将 GitHub Pages 用于我的博客,但遇到了 Jekyll 的问题。我的 post.html 有这样的块:
{% for testpost in site.posts %}
{% four %}
{% lines of %}
{% processing %}
{% goes here %}
{% endfor %}
中间的部分无关紧要。重要的部分是{% %} 标记之外的行尾,因此会呈现到html 中。由于这是一个循环,它会将大约 1000 个空白行放入 HTML 页面的中间。它不影响显示,但它使 View/Source 很麻烦。
关于如何避免那些多余的空行有什么想法吗?
【问题讨论】:
标签: jekyll liquid github-pages liquid-layout