mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
Pass the context on to IncludeRelativeTag#page_path
This commit is contained in:
@@ -156,12 +156,12 @@ eos
|
||||
'.'
|
||||
end
|
||||
|
||||
def page_path
|
||||
def page_path(context)
|
||||
context.registers[:page].nil? ? includes_dir : File.dirname(context.registers[:page]["path"])
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user