Skip to content

Instantly share code, notes, and snippets.

@amandasaffer
Forked from sskylar/minify-liquid.html
Created September 18, 2016 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandasaffer/4d072e8cf89c3fbabe283215a2f22bd7 to your computer and use it in GitHub Desktop.
Save amandasaffer/4d072e8cf89c3fbabe283215a2f22bd7 to your computer and use it in GitHub Desktop.
Simple HTML minify with Liquid/Siteleaf. Strips all line breaks, tabs, and extra spaces.
{% capture html %}
<html>
...
</html>
{% endcapture %}{{ html | strip_newlines | replace:' ','' | replace:' ','' | replace:' ',' ' }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment