aboutsummaryrefslogtreecommitdiff
path: root/plugins/include_code.rb
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-09-18 21:27:42 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-09-18 21:27:42 +0200
commit44e4a991cf7cab619edecc23bed667e4a3233560 (patch)
treeb05a2c803896ee86ddf73aa3ac045bb03bc14bed /plugins/include_code.rb
parent31adeee1dfda4907cadebceda5d59ac0845624a1 (diff)
downloadmy_new_personal_website-44e4a991cf7cab619edecc23bed667e4a3233560.tar.xz
my_new_personal_website-44e4a991cf7cab619edecc23bed667e4a3233560.zip
Fixes styling of <figure> code header
Diffstat (limited to 'plugins/include_code.rb')
-rw-r--r--plugins/include_code.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/include_code.rb b/plugins/include_code.rb
index 80951cb5..fc6daa36 100644
--- a/plugins/include_code.rb
+++ b/plugins/include_code.rb
@@ -61,7 +61,7 @@ module Jekyll
@filetype = file.extname.sub('.','') if @filetype.nil?
title = @title ? "#{@title} (#{file.basename})" : file.basename
url = "/#{code_dir}/#{@file}"
- source = "<figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
+ source = "<figure class='code'><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
source += " #{highlight(code, @filetype)}</figure>"
safe_wrap(source)
end