Commit b7840080 authored by rmrf's avatar rmrf
Browse files

Upped the version so it works

parent 61975c7b
...@@ -86,11 +86,10 @@ module Jekyll ...@@ -86,11 +86,10 @@ module Jekyll
end end
items = items[offset..max] if limit_entries? items = items[offset..max] if limit_entries?
bibliography = ""
bibliography = render_header(@type_labels[query]) bibliography << render_header(@type_labels[query])
bibliography << items.each_with_index.map { |entry, index| bibliography << items.each_with_index.map { |entry, index|
reference = render_index(entry, bibliography_tag(entry, nil)) reference = render_index(entry, bibliography_tag(entry, nil))
if generate_details? if generate_details?
reference << link_to(details_link_for(entry), reference << link_to(details_link_for(entry),
config['details_link'], :class => config['details_link_class']) config['details_link'], :class => config['details_link_class'])
...@@ -111,8 +110,7 @@ module Jekyll ...@@ -111,8 +110,7 @@ module Jekyll
content_tag "li class=\"" + render_ref_img(entry) + "\"", reference content_tag "li class=\"" + render_ref_img(entry) + "\"", reference
}.join("\n") }.join("\n")
return content_tag config['bibliography_list_tag'], bibliography, :class => config['bibliography_class']
content_tag config['bibliography_list_tag'], bibliography, :class => config['bibliography_class']
end end
end end
......
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