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
d4aeac70
Commit
d4aeac70
authored
Jan 21, 2016
by
elotroalex
Browse files
added small r to the regex and removed edit comments
parent
1e128bf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/jekyll/scholar/utilities.rb
View file @
d4aeac70
...
...
@@ -17,7 +17,6 @@ module Jekyll
# #site readers
module
Utilities
#elotroalex edit: added local variable relative
attr_reader
:config
,
:site
,
:context
,
:prefix
,
:text
,
:offset
,
:max
,
:relative
...
...
@@ -62,8 +61,6 @@ module Jekyll
@prefix
=
prefix
end
# elotroalex edit: added flag for relative url for link_to
opts
.
on
(
'-r'
,
'--relative RELATIVE'
)
do
|
relative
|
@relative
=
relative
end
...
...
@@ -93,7 +90,7 @@ module Jekyll
end
end
argv
=
arguments
.
split
(
/(\B-[cCfqptTslomA]|\B--(?:cited(_in_order)?|file|query|relative|prefix|text|style|template|locator|offset|max|suppress_author|))/
)
argv
=
arguments
.
split
(
/(\B-[cCfq
r
ptTslomA]|\B--(?:cited(_in_order)?|file|query|relative|prefix|text|style|template|locator|offset|max|suppress_author|))/
)
parser
.
parse
argv
.
map
(
&
:strip
).
reject
(
&
:empty?
)
end
...
...
@@ -577,8 +574,6 @@ module Jekyll
(
context
[
'citation_numbers'
]
||=
{})[
key
]
||=
cited_keys
.
length
end
# #elotroalex edit: Added new method to control href output for cite
def
link_target_for
key
"
#{
relative
}
#
#{
[
prefix
,
key
].
compact
.
join
(
'-'
)
}
"
end
...
...
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