Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
d8dee426
Commit
d8dee426
authored
Mar 17, 2013
by
Sylvester Keil
Browse files
make sure it is an absolute path
#14
parent
22a38163
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/jekyll/scholar/utilities.rb
View file @
d8dee426
...
...
@@ -71,7 +71,8 @@ module Jekyll
name
=
config
[
'bibliography'
]
end
return
name
if
File
.
exists?
(
name
)
# return as is if it is an absolute path
return
name
if
name
.
start_with?
(
'/'
)
&&
File
.
exists?
(
name
)
p
=
File
.
join
(
config
[
'source'
],
name
)
p
<<
'.bib'
unless
File
.
exists?
(
p
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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