Pass the context on to IncludeRelativeTag#page_path
This commit is contained in:
parent
22cc393cd4
commit
b564214535
|
@ -156,12 +156,12 @@ eos
|
||||||
'.'
|
'.'
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_path
|
def page_path(context)
|
||||||
context.registers[:page].nil? ? includes_dir : File.dirname(context.registers[:page]["path"])
|
context.registers[:page].nil? ? includes_dir : File.dirname(context.registers[:page]["path"])
|
||||||
end
|
end
|
||||||
|
|
||||||
def resolved_includes_dir(context)
|
def resolved_includes_dir(context)
|
||||||
Jekyll.sanitized_path(context.registers[:site].source, page_path)
|
Jekyll.sanitized_path(context.registers[:site].source, page_path(context))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue