diff --git a/plugins/code_block.rb b/plugins/code_block.rb index 8670828..ff242aa 100644 --- a/plugins/code_block.rb +++ b/plugins/code_block.rb @@ -79,6 +79,7 @@ module Jekyll if @filetype @filetype = 'objc' if @filetype == 'm' @filetype = 'perl' if @filetype == 'pl' + @filetype = 'yaml' if @filetype == 'yml' source += " #{highlight(code, @filetype)}" else source += "
" + code.lstrip.rstrip.gsub(/,'<') + "
"
diff --git a/plugins/include_code.rb b/plugins/include_code.rb
index f2b8e37..e064fe2 100644
--- a/plugins/include_code.rb
+++ b/plugins/include_code.rb
@@ -55,6 +55,7 @@ module Jekyll
@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 = "