Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar
Commits
ffa00866
Commit
ffa00866
authored
Aug 04, 2012
by
Sylvester Keil
Browse files
fallback to default details link text
parent
b4404bd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/jekyll/scholar/tags/cite_details.rb
View file @
ffa00866
...
...
@@ -3,24 +3,24 @@ module Jekyll
class
CiteDetailsTag
<
Liquid
::
Tag
include
Scholar
::
Utilities
attr_reader
:key
,
:text
def
initialize
(
tag_name
,
arguments
,
tokens
)
super
@config
=
Scholar
.
defaults
.
dup
@key
=
arguments
.
strip
.
split
(
/\s+/
,
2
)[
0
]
@text
=
arguments
.
strip
.
split
(
/\s+/
,
2
)[
1
]
@key
=
arguments
.
strip
.
split
(
/\s+/
,
2
)[
0
]
@text
=
arguments
.
strip
.
split
(
/\s+/
,
2
)[
1
]
||
@config
[
'details_link'
]
end
def
render
(
context
)
set_context_to
context
cite_details
key
,
text
end
end
end
end
...
...
Write
Preview
Supports
Markdown
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