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
6730764d
Commit
6730764d
authored
Apr 13, 2014
by
David Moxey
Browse files
Add configuration option to join strings to avoid ugly output
parent
530ce2a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lib/jekyll/scholar/defaults.rb
lib/jekyll/scholar/defaults.rb
+1
-0
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+5
-0
No files found.
lib/jekyll/scholar/defaults.rb
View file @
6730764d
...
...
@@ -15,6 +15,7 @@ module Jekyll
'bibtex_filters'
=>
[
:latex
],
'replace_strings'
=>
true
,
'join_strings'
=>
true
,
'details_dir'
=>
'bibliography'
,
'details_layout'
=>
'bibtex.html'
,
...
...
lib/jekyll/scholar/utilities.rb
View file @
6730764d
...
...
@@ -83,6 +83,7 @@ module Jekyll
bibtex_options
)
@bibliography
.
replace_strings
if
replace_strings?
@bibliography
.
join
if
join_strings?
end
@bibliography
...
...
@@ -123,6 +124,10 @@ module Jekyll
config
[
'replace_strings'
]
end
def
join_strings?
config
[
'join_strings'
]
end
def
cited_only?
!!
@cited
end
...
...
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