Commit c9ad5f90 authored by Sylvester Keil's avatar Sylvester Keil

add support for both filter and path #9

parent b80839d7
...@@ -8,15 +8,7 @@ module Jekyll ...@@ -8,15 +8,7 @@ module Jekyll
super super
@config = Scholar.defaults.dup @config = Scholar.defaults.dup
@bibtex_file, @query = arguments.strip.split(/\s*filter:\s*/)
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
end end
def render(context) def render(context)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment