mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-04 16:25:05 -05:00
code_block and inlcude_code no longer needlessly render through the Liquid template parser
This commit is contained in:
parent
ff1dba19f2
commit
6009daa8a2
@ -84,10 +84,6 @@ module Jekyll
|
||||
source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'<') + "</code></pre></figure></div>"
|
||||
end
|
||||
source = source + context['pygments_suffix'] if context['pygments_suffix']
|
||||
partial = Liquid::Template.parse(source)
|
||||
context.stack do
|
||||
partial.render(context)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user