Commit be2f8090 authored by Sylvester Keil's avatar Sylvester Keil

better solution for #44

parent 94a2630f
......@@ -31,7 +31,6 @@ end
Then(/^"(.*)" should come before "(.*)" in "(.*)"$/) do |p1, p2, file|
data = File.open(file).readlines.join('')
puts data
m1 = data.match(p1)
m2 = data.match(p2)
......
......@@ -17,13 +17,9 @@ module Jekyll
references = entries
if cited_only?
references = cited_references.uniq.map do |key|
references.detect { |e| e.key == key }
end
references = sort references
end
references.select! do |e|
cited_references.include? e.key
end if cited_only?
bibliography = references.each_with_index.map { |entry, index|
reference = bibliography_tag(entry, index + 1)
......
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