Commit 44ce4d20 authored by Sylvester Keil's avatar Sylvester Keil

fix #51 symbol to liquid conversion

parent 723f4f75
......@@ -94,7 +94,7 @@ Feature: BibTeX
Given I have a scholar configuration with:
| key | value |
| source | ./_bibliography |
| bibliography_template | <abbr>{{index}} [{{key}}]</abbr>{{reference}} |
| bibliography_template | <abbr>{{index}} {{entry.type}} [{{key}}]</abbr>{{reference}} |
And I have a "_bibliography" directory
And I have a file "_bibliography/references.bib":
"""
......@@ -115,7 +115,7 @@ Feature: BibTeX
Then the _site directory should exist
And the "_site/scholar.html" file should exist
And I should see "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
And I should see "<abbr>1 \[ruby\]</abbr><span" in "_site/scholar.html"
And I should see "<abbr>1 book \[ruby\]</abbr><span" in "_site/scholar.html"
@tags @filter
Scenario: Filtered Bibliography Loaded From Default Directory
......@@ -151,7 +151,7 @@ Feature: BibTeX
And I should not see "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
And I should see "<i>Smalltalk Best Practice Patterns</i>" in "_site/scholar.html"
@tags @filter @variables @wip
@tags @filter @variables
Scenario: Filter using interpolated query variable
Given I have a scholar configuration with:
| key | value |
......
......@@ -239,7 +239,7 @@ module Jekyll
'entry' => liquidify(entry),
'reference' => reference_tag(entry, index),
'key' => entry.key,
'type' => entry.type,
'type' => entry.type.to_s,
'link' => repository_link_for(entry),
'index' => index
})
......@@ -249,7 +249,7 @@ module Jekyll
e = {}
e['key'] = entry.key
e['type'] = entry.type
e['type'] = entry.type.to_s
if entry.field?(:abstract)
tmp = entry.dup
......
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