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
c9ad5f90
Commit
c9ad5f90
authored
Feb 07, 2013
by
Sylvester Keil
Browse files
add support for both filter and path #9
parent
b80839d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/jekyll/scholar/tags/bibliography.rb
View file @
c9ad5f90
...
...
@@ -8,15 +8,7 @@ module Jekyll
super
@config
=
Scholar
.
defaults
.
dup
path_or_query
=
arguments
.
strip
case
when
path_or_query
.
start_with?
(
'@'
)
@query
=
path_or_query
when
!
path_or_query
.
empty?
@bibtex_file
=
path_or_query
end
@bibtex_file
,
@query
=
arguments
.
strip
.
split
(
/\s*filter:\s*/
)
end
def
render
(
context
)
...
...
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