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
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
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
lib/jekyll/scholar/tags/bibliography.rb
lib/jekyll/scholar/tags/bibliography.rb
+1
-9
No files found.
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
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