Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gemfarmer/jekyll-liquify
A Jekyll filter that parses Liquid from front matter
https://github.com/gemfarmer/jekyll-liquify
filter jekyll liquid
Last synced: about 1 month ago
JSON representation
A Jekyll filter that parses Liquid from front matter
- Host: GitHub
- URL: https://github.com/gemfarmer/jekyll-liquify
- Owner: gemfarmer
- License: other
- Created: 2017-08-21T17:23:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-28T03:59:42.000Z (12 months ago)
- Last Synced: 2024-04-24T15:19:35.272Z (8 months ago)
- Topics: filter, jekyll, liquid
- Language: Ruby
- Homepage: https://rubygems.org/gems/jekyll-liquify
- Size: 8.79 KB
- Stars: 36
- Watchers: 3
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jekyll-plugins - **Jekyll Liquify** - liquify](https://rubygems.org/gems/jekyll-liquify)) a filter that parses Liquid from front matter (Text Filters)
README
# Jekyll Liquify
*A Jekyll filter that can parse Liquid in front matter
*[![Gem Version](https://img.shields.io/gem/v/jekyll-liquify.svg)](https://rubygems.org/gems/jekyll-liquify)
[![Build Status](https://img.shields.io/travis/gemfarmer/jekyll-liquify/master.svg)](https://travis-ci.org/gemfarmer/jekyll-liquify)
[![Dependency Status](https://img.shields.io/gemnasium/gemfarmer/jekyll-liquify.svg)](https://gemnasium.com/gemfarmer/jekyll-liquify)## Usage
1. Add `gem 'jekyll-liquify'` to your site's Gemfile and run `bundle`
2. Add the following to your site's `_config.yml`:```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 }}!
>>
Welcome to example!
```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 }}!
>>
Welcome to example!
```## Testing
1. `script/bootstrap`
2. `script/cibuild`## Contributing
1. Fork the project
2. Create a descriptively named feature branch
3. Add your feature
4. Submit a pull request