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
461500d4
Commit
461500d4
authored
Jan 26, 2016
by
Sylvester Keil
Browse files
Strip relative option just once
See #124
parent
43b35887
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+4
-4
No files found.
lib/jekyll/scholar/utilities.rb
View file @
461500d4
...
@@ -62,7 +62,7 @@ module Jekyll
...
@@ -62,7 +62,7 @@ module Jekyll
end
end
opts
.
on
(
'-r'
,
'--relative RELATIVE'
)
do
|
relative
|
opts
.
on
(
'-r'
,
'--relative RELATIVE'
)
do
|
relative
|
@relative
=
relative
@relative
=
relative
.
to_s
.
strip
end
end
opts
.
on
(
'-t'
,
'--text TEXT'
)
do
|
text
|
opts
.
on
(
'-t'
,
'--text TEXT'
)
do
|
text
|
...
@@ -575,7 +575,7 @@ module Jekyll
...
@@ -575,7 +575,7 @@ module Jekyll
end
end
def
link_target_for
key
def
link_target_for
key
"
#{
base_url
}#{
relative
.
to_s
.
strip
}
#
#{
[
prefix
,
key
].
compact
.
join
(
'-'
)
}
"
"
#{
base_url
}#{
relative
}
#
#{
[
prefix
,
key
].
compact
.
join
(
'-'
)
}
"
end
end
def
cite
(
keys
)
def
cite
(
keys
)
...
...
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