...
|
...
|
@@ -25,7 +25,7 @@ module Jekyll
|
25
|
25
|
code = file.read
|
26
|
26
|
file_type = file.extname
|
27
|
27
|
url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}"
|
28
|
|
- source = "<figure><figcaption><span>#{file.basename}</span><a href='#{url}'>download</a></figcaption>\n"
|
|
28
|
+ source = "<figure><figcaption><span>#{file.basename}</span> <a href='#{url}'>download</a></figcaption>\n"
|
29
|
29
|
source += "{% highlight #{file_type} %}\n" + code + "\n{% endhighlight %}</figure>"
|
30
|
30
|
partial = Liquid::Template.parse(source)
|
31
|
31
|
context.stack do
|