added a space in code figcaption title to make it play nicer with RSS or other no CSS views
This commit is contained in:
parent
983dd84a4b
commit
67c5edb2f6
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ module Jekyll
|
||||||
code = file.read
|
code = file.read
|
||||||
file_type = file.extname
|
file_type = file.extname
|
||||||
url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}"
|
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>"
|
source += "{% highlight #{file_type} %}\n" + code + "\n{% endhighlight %}</figure>"
|
||||||
partial = Liquid::Template.parse(source)
|
partial = Liquid::Template.parse(source)
|
||||||
context.stack do
|
context.stack do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue