diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-07-12 08:49:43 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-07-12 08:49:43 -0400 |
commit | 67c5edb2f6eb8747a659109fe160b4c54f6e2917 (patch) | |
tree | a0abc21732edbbb725ec293e3bc5e0c0b318d0c4 | |
parent | 983dd84a4b964d45a8ed767a905b222b46fdefd8 (diff) | |
download | my_new_personal_website-67c5edb2f6eb8747a659109fe160b4c54f6e2917.tar.xz my_new_personal_website-67c5edb2f6eb8747a659109fe160b4c54f6e2917.zip |
added a space in code figcaption title to make it play nicer with RSS or other no CSS views
-rw-r--r-- | .themes/classic/plugins/include_code.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.themes/classic/plugins/include_code.rb b/.themes/classic/plugins/include_code.rb index fa5c76ff..5569b4a3 100644 --- a/.themes/classic/plugins/include_code.rb +++ b/.themes/classic/plugins/include_code.rb @@ -25,7 +25,7 @@ module Jekyll code = file.read file_type = file.extname url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}" - source = "<figure><figcaption><span>#{file.basename}</span><a href='#{url}'>download</a></figcaption>\n" + source = "<figure><figcaption><span>#{file.basename}</span> <a href='#{url}'>download</a></figcaption>\n" source += "{% highlight #{file_type} %}\n" + code + "\n{% endhighlight %}</figure>" partial = Liquid::Template.parse(source) context.stack do |