diff --git a/plugins/include_code.rb b/plugins/include_code.rb index 5529f32..70d5f13 100644 --- a/plugins/include_code.rb +++ b/plugins/include_code.rb @@ -58,7 +58,7 @@ module Jekyll code = file.read @filetype = file.extname.sub('.','') if @filetype.nil? title = @title ? "#{@title} (#{file.basename})" : file.basename - url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}" + url = "/#{code_dir}/#{@file}" source = "
#{title} download
\n" source += " #{highlight(code, @filetype)}
" end