diff --git a/features/details.feature b/features/details.feature index 698642dc1ba6160f4aede01e9732eaf286c94bce..0dd82d1bfdc1bd308f256cee9f70bf8e25755ef3 100644 --- a/features/details.feature +++ b/features/details.feature @@ -3,7 +3,7 @@ Feature: Details I want to publish my BibTeX bibliography on my blog And I want Jekyll to generate detail pages for all the entries in my bibliography - @generators + @generators @wip Scenario: A bibliography with a single entry Given I have a scholar configuration with: | key | value | @@ -16,6 +16,7 @@ Feature: Details title = {The Ruby Programming Language}, author = {Flanagan, David and Matsumoto, Yukihiro}, year = {2008}, + comment = {A Comment}, publisher = {O'Reilly Media} } """ @@ -27,7 +28,8 @@ Feature: Details - {{ page.entry.title }} + {{ page.title }} + {{ page.entry.comment }} """ @@ -35,6 +37,7 @@ Feature: Details Then the _site directory should exist And the "_site/bibliography/ruby.html" file should exist And I should see "The Ruby Programming Language" in "_site/bibliography/ruby.html" + And I should see "A Comment" in "_site/bibliography/ruby.html" @generators Scenario: LaTeX conversion is applied to everything except the bibtex field diff --git a/lib/jekyll/scholar/generators/details.rb b/lib/jekyll/scholar/generators/details.rb index f48d468e11d621d9ecfb1960004ac2fa51a68379..26996b91a7e6dc9ba58fefb8daa1291ff3e369b4 100644 --- a/lib/jekyll/scholar/generators/details.rb +++ b/lib/jekyll/scholar/generators/details.rb @@ -15,6 +15,7 @@ module Jekyll process(@name) read_yaml(File.join(base, '_layouts'), config['details_layout']) + data['title'] = entry.title.to_s data.merge!(reference_data(entry)) end