From 11c6e1f7a73fa19c51687f93af7dc8afbc60cb5e Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sun, 21 Aug 2011 16:15:46 -0400 Subject: [PATCH] include_code now defaults to relative urls for easy testing on a development server --- plugins/include_code.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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