aboutsummaryrefslogtreecommitdiff
path: root/plugins/include_code.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-08-20 18:39:00 -0400
committerBrandon Mathis <brandon@imathis.com>2011-08-20 18:39:47 -0400
commit358d02a4a7c9b81e68a1c3778c68b97987b1a360 (patch)
treed80db2ab836e65bf4552ca36dfcb767c477bfb23 /plugins/include_code.rb
parent596ec87c37d4f848e478abbbd0690e52eeb37db1 (diff)
downloadmy_new_personal_website-358d02a4a7c9b81e68a1c3778c68b97987b1a360.tar.xz
my_new_personal_website-358d02a4a7c9b81e68a1c3778c68b97987b1a360.zip
centralized pygments aliases into pygments_code.rb. Added alias for .ru (ruby), which sort of fixes #108
Diffstat (limited to 'plugins/include_code.rb')
-rw-r--r--plugins/include_code.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/plugins/include_code.rb b/plugins/include_code.rb
index e064fe2c..d910c3e6 100644
--- a/plugins/include_code.rb
+++ b/plugins/include_code.rb
@@ -53,9 +53,6 @@ module Jekyll
Dir.chdir(code_path) do
code = file.read
@filetype = file.extname.sub('.','')
- @filetype = 'objc' if @filetype == 'm'
- @filetype = 'perl' if @filetype == 'pl'
- @filetype = 'yaml' if @filetype == 'yml'
title = @title ? "#{@title} (#{file.basename})" : file.basename
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"