a patch for the issue: [Liquid doesn't render my partial · Issue #1519 · mojombo/jekyll](https://github.com/mojombo/jekyll/issues/1519)
This commit is contained in:
parent
94e001e549
commit
421e58ad59
|
@ -80,6 +80,10 @@ eos
|
|||
return "The included file '_includes/#{@file}' should not be a symlink"
|
||||
end
|
||||
end
|
||||
|
||||
def blank?
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -436,5 +436,22 @@ CONTENT
|
|||
assert_match "<span id='include-param' />", @result
|
||||
end
|
||||
end
|
||||
|
||||
context "without parameters within if statement" do
|
||||
setup do
|
||||
content = <<CONTENT
|
||||
---
|
||||
title: without parameters within if statement
|
||||
---
|
||||
|
||||
{% if true %}{% include params.html %}{% endif %}
|
||||
CONTENT
|
||||
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
||||
end
|
||||
|
||||
should "include file with empty parameters within if statement" do
|
||||
assert_match "<span id='include-param' />", @result
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue