Sha256: d52cc879ec6a9909ede008da194d84b265befbe8e05c32fc2881ad2d8f98e9c4
Contents?: true
Size: 806 Bytes
Versions: 12
Compression:
Stored size: 806 Bytes
Contents
# ------------------------------------------------------------------------------ # ~/_plugins/filter/liquify.rb # Liquid filter to expand nested liquid-variables in the front matter # # Product/Info: # http://jekyll.one # # Copyright (C) 2023, 2024 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md # See: http://acegik.net/blog/ruby/jekyll/plugins/howto-nest-liquid-template-variables-inside-yaml-front-matter-block.html # ------------------------------------------------------------------------------ module Jekyll module ExpandNestedVariableFilter def liquify(input) Liquid::Template.parse(input).render(@context) end end end Liquid::Template.register_filter(Jekyll::ExpandNestedVariableFilter)
Version data entries
12 entries across 12 versions & 1 rubygems