Commit a51f3338 authored by rmrf's avatar rmrf
Browse files

cite_details is more useful for publications

parent f010854e
...@@ -80,16 +80,17 @@ module Jekyll ...@@ -80,16 +80,17 @@ module Jekyll
config['details_dir'] config['details_dir']
end end
def cite(key) def cite_details(key)
entry = bibliography[key] entry = bibliography[key]
if bibliography.key?(key) if bibliography.key?(key)
citation = CiteProc.process entry.to_citeproc, :style => config['style'], link_to "More details.", details_link_for(entry)
:locale => config['locale'], :format => 'html', :mode => :citation #citation = CiteProc.process entry.to_citeproc, :style => config['style'],
#:locale => config['locale'], :format => 'html', :mode => :citation
link_to "##{entry.key}", citation.join #link_to "##{entry.key}", citation.join
else #else
"(missing reference)" #"(missing reference)"
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