Commit 57fbacd8 authored by Sylvester Keil's avatar Sylvester Keil

Merge pull request #87 from iiegn/issue-#70

Activate jekyll filters
parents 9ac906e3 293f013d
......@@ -38,6 +38,40 @@ Feature: BibTeX
And I should see "Programming Ruby" in "_site/scholar.html"
And I should not see "The Ruby Programming Language" in "_site/scholar.html"
@tags @filters
Scenario: Jekyll Filters
Given I have a scholar configuration with:
| key | value |
| source | ./_bibliography |
| bibliography_template | template |
And I have a "_bibliography" directory
And I have a file "_bibliography/references.bib":
"""
@book{ruby:2008-Foo,
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
}
"""
And I have a "_layouts" directory
And I have a file "_layouts/template.html":
"""
---
---
{{ entry.key | slugify }}
"""
And I have a page "scholar.html":
"""
---
---
{% bibliography %}
"""
When I run jekyll
Then the _site directory should exist
And the "_site/scholar.html" file should exist
And I should see "ruby-2008-foo" in "_site/scholar.html"
@tags @max
Scenario: Limit number of entries
Given I have a scholar configuration with:
......
......@@ -255,6 +255,7 @@ module Jekyll
def liquid_template
return @liquid_template if @liquid_template
Liquid::Template.register_filter(Jekyll::Filters)
tmp = bibliography_template
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment