aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/plugins
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-07-17 20:28:02 -0400
committerBrandon Mathis <brandon@imathis.com>2011-07-17 20:28:02 -0400
commit4dfc5c1d67ab50752a38a69949f546475d1b3e7e (patch)
tree0dc3cb3330bb324b3cb4cb117298f81d3467e501 /.themes/classic/plugins
parent790521a44b12c6a287d0d52c80aafe6c93fc341f (diff)
downloadmy_new_personal_website-4dfc5c1d67ab50752a38a69949f546475d1b3e7e.tar.xz
my_new_personal_website-4dfc5c1d67ab50752a38a69949f546475d1b3e7e.zip
scoped titlebar styling to figcaptions under figures with role="code", added an example for overriding a style in sass/custom/styles.scss
Diffstat (limited to '.themes/classic/plugins')
-rw-r--r--.themes/classic/plugins/include_code.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/.themes/classic/plugins/include_code.rb b/.themes/classic/plugins/include_code.rb
index 5569b4a3..905cee52 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 role=code><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