|
|
@ -59,10 +59,6 @@ module Jekyll |
|
|
|
url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}" |
|
|
|
source = "<div><figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n" |
|
|
|
source += " #{highlight(code, @filetype)}</figure></div>" |
|
|
|
partial = Liquid::Template.parse(source) |
|
|
|
context.stack do |
|
|
|
partial.render(context) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|