Commit 4fde5648 authored by Sylvester Keil's avatar Sylvester Keil

fix bibtex options

see #82
parent da81bbb3
......@@ -185,7 +185,7 @@ Feature: Details
And I should see "<a[^>]+href=\"/bibliography/ruby/index.html\">" in "_site/scholar/index.html"
And the "_site/bibliography/ruby/index.html" file should exist
@generators @parse_months @wip
@generators @parse_months
Scenario: Months are parsed by default
Given I have a scholar configuration with:
| key | value |
......@@ -208,3 +208,30 @@ Feature: Details
Then the _site directory should exist
And the "_site/bibliography/august.html" file should exist
And I should see "month = aug" in "_site/bibliography/august.html"
@generators @parse_months @wip
Scenario: Month parsing can be turned off
Given I have a scholar configuration with:
| key | value |
| details_layout | details.html |
And I have the following BibTeX options:
| key | value |
| parse_months | false |
And I have a "_bibliography" directory
And I have a file "_bibliography/references.bib":
"""
@book{august,
month = {August}
}
"""
And I have a "_layouts" directory
And I have a file "_layouts/details.html":
"""
---
---
{{ page.entry.bibtex }}
"""
When I run jekyll
Then the _site directory should exist
And the "_site/bibliography/august.html" file should exist
And I should see "month = {August}" in "_site/bibliography/august.html"
......@@ -95,7 +95,8 @@ module Jekyll
end
def bibtex_options
config['bibtex_options'] ||= {}
@bibtex_options ||=
(config['bibtex_options'] || {}).symbolize_keys
end
def bibtex_filters
......
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