mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-01 07:45:01 -04:00
include_code is now more forgiving, stripping leading forward slashes from the code_dir config
This commit is contained in:
parent
400c8d2700
commit
4ece188eba
@ -38,7 +38,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def render(context)
|
||||
code_dir = (context.registers[:site].config['code_dir'] || 'downloads/code')
|
||||
code_dir = (context.registers[:site].config['code_dir'].sub(/^\//,'') || 'downloads/code')
|
||||
code_path = (Pathname.new(context.registers[:site].source) + code_dir).expand_path
|
||||
file = code_path + @file
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user