Skip to content

Instantly share code, notes, and snippets.

@simlrh
Created November 15, 2016 14:05
Show Gist options
  • Save simlrh/2677563ef082907de59fce4f7cef7d93 to your computer and use it in GitHub Desktop.
Save simlrh/2677563ef082907de59fce4f7cef7d93 to your computer and use it in GitHub Desktop.
Use Liquid's new array concatenation in Jekyll
module Jekyll
module ConcatFilter
def concat(one, two)
one.concat(two)
end
end
end
Liquid::Template.register_filter(Jekyll::ConcatFilter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment