preserves/_plugins/liquify.rb

12 lines
290 B
Ruby
Raw Normal View History

2019-08-18 21:08:55 +00:00
# http://stackoverflow.com/questions/14487110/include-jekyll-liquid-template-data-in-a-yaml-variable
module Jekyll
module LiquifyFilter
def liquify(input)
Liquid::Template.parse(input).render(@context)
end
end
end
Liquid::Template.register_filter(Jekyll::LiquifyFilter)