-
-
Save gchristofferson/26bda8f6b4b252a8d865732733f7112c to your computer and use it in GitHub Desktop.
Simple HTML minify with Liquid/Siteleaf. Strips all line breaks, tabs, and extra spaces.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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