Skip to content

Instantly share code, notes, and snippets.

@neilkinnish
Created August 1, 2014 19:26
Show Gist options
  • Save neilkinnish/27daa4e2c7354762f7bd to your computer and use it in GitHub Desktop.
Save neilkinnish/27daa4e2c7354762f7bd to your computer and use it in GitHub Desktop.
Example of what I mean
Instead of this...
{{ i | append: "-750x510.jpg" | asset_url | image_tag }}
Do this...
{% capture newImg %}{{ i | append: "-750x510.jpg" }}{% endcapture %}
{{ newImg | asset_url | image_tag }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment