Skip to content

Instantly share code, notes, and snippets.

@carolineschnapp
Created June 7, 2011 19:51
Show Gist options
  • Save carolineschnapp/1012997 to your computer and use it in GitHub Desktop.
Save carolineschnapp/1012997 to your computer and use it in GitHub Desktop.
Product Image Caption that uses the image filename
{% capture caption %}{{ image | remove: "products/" | remove: ".jpeg" | remove: ".jpg" | remove: ".png" | handleize | replace: "-", " " | replace: "_", " " | capitalize }}{% endcapture %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment