Awesome
Jekyll Liquify
*A Jekyll filter that can parse Liquid in front matter *
Usage
- Add
gem 'jekyll-liquify'
to your site's Gemfile and runbundle
- Add the following to your site's
_config.yml
:
gems:
- jekyll-liquify
To use in your project, add liquid tags to front matter and use the liquify
filter to parse it:
example.md
---
title: Welcome to {{ page.title_variable }}
title_variable: example
---
# Welcome to {{ title | liquify }}!
<!-- This will output the following -->
>> <h1>Welcome to example!</h1>
You can use it in conjunction with markdownify
, but liquify
has to go first:
example.md
---
title: Welcome to **{{ page.title_variable }}**
title_variable: example
---
# Welcome to {{ title | liquify | markdownify }}!
<!-- This will output the following -->
>> <h1>Welcome to <strong>example</strong>!</h1>
Testing
script/bootstrap
script/cibuild
Contributing
- Fork the project
- Create a descriptively named feature branch
- Add your feature
- Submit a pull request