| ... | ... |
@@ -38,7 +38,7 @@ module Jekyll |
| 38 | 38 |
end |
| 39 | 39 |
|
| 40 | 40 |
def render(context) |
| 41 |
- code_dir = (context.registers[:site].config['code_dir'] || 'downloads/code') |
|
| 41 |
+ code_dir = (context.registers[:site].config['code_dir'].sub(/^\//,'') || 'downloads/code') |
|
| 42 | 42 |
code_path = (Pathname.new(context.registers[:site].source) + code_dir).expand_path |
| 43 | 43 |
file = code_path + @file |
| 44 | 44 |
|