Commit ffa00866 authored by Sylvester Keil's avatar Sylvester Keil

fallback to default details link text

parent b4404bd8
......@@ -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
......
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