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 %}
{%
Actually there is a new solution for this problem which works without any plugin.
A Jekyll layout that compresses HTML. At a glance:
- removes unnecessary whitespace;
- removes optional end tags;
- removes optional start tags;
- removes comments;
- preserves whitespace within
;
- GitHub Pages compatible;
- ignores development environments;
- configurable affected elements;
- profile mode;
- automatically tested.
http://jch.penibelst.de/
If you - for some reason - do not want to use this here is a nice article, which describes some workarounds: Compressing Liquid generated code - sylvain durand