aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/code_block.rb1
-rw-r--r--plugins/include_code.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index 86708285..ff242aab 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)}</figure></div>"
else
source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'&lt;') + "</code></pre></figure></div>"
diff --git a/plugins/include_code.rb b/plugins/include_code.rb
index f2b8e37b..e064fe2c 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 = "<div><figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"