diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-08-01 16:23:17 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-08-01 16:28:07 -0400 |
commit | 6009daa8a215903506509227380a4ea09b8b6f25 (patch) | |
tree | 646b4daca69a66945470829520354e95506f63ec | |
parent | ff1dba19f2f08e31a928778bdd94663b98d7dc19 (diff) | |
download | my_new_personal_website-6009daa8a215903506509227380a4ea09b8b6f25.tar.xz my_new_personal_website-6009daa8a215903506509227380a4ea09b8b6f25.zip |
code_block and inlcude_code no longer needlessly render through the Liquid template parser
Diffstat (limited to '')
-rw-r--r-- | plugins/code_block.rb | 4 | ||||
-rw-r--r-- | plugins/include_code.rb | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb index cdb12307..86708285 100644 --- a/plugins/code_block.rb +++ b/plugins/code_block.rb @@ -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 diff --git a/plugins/include_code.rb b/plugins/include_code.rb index ec72006c..f2b8e37b 100644 --- a/plugins/include_code.rb +++ b/plugins/include_code.rb @@ -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 |