Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
caesr-pub
jekyll-scholar
Commits
df687e2d
Commit
df687e2d
authored
Sep 30, 2013
by
Sylvester Keil
Browse files
fix #35 suppress duplicates in cited references
parent
7e77b9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/jekyll/scholar/tags/bibliography.rb
lib/jekyll/scholar/tags/bibliography.rb
+2
-2
No files found.
lib/jekyll/scholar/tags/bibliography.rb
View file @
df687e2d
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment