Commit df687e2d authored by Sylvester Keil's avatar Sylvester Keil

fix #35 suppress duplicates in cited references

parent 7e77b9cd
......@@ -18,7 +18,7 @@ module Jekyll
references = entries
if cited_only?
references = cited_references.map do |key|
references = cited_references.uniq.map do |key|
references.detect { |e| e.key == key }
end
end
......@@ -50,4 +50,4 @@ module Jekyll
end
end
Liquid::Template.register_tag('bibliography', Jekyll::Scholar::BibliographyTag)
\ No newline at end of file
Liquid::Template.register_tag('bibliography', Jekyll::Scholar::BibliographyTag)
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