Merge pull request #2731 from jekyll/doc-to_s
This commit is contained in:
commit
ba63a2c6d1
|
@ -246,7 +246,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the content of the document
|
# Returns the content of the document
|
||||||
def to_s
|
def to_s
|
||||||
output || content
|
content || ''
|
||||||
end
|
end
|
||||||
|
|
||||||
# Compare this document against another document.
|
# Compare this document against another document.
|
||||||
|
|
|
@ -49,14 +49,17 @@ module Jekyll
|
||||||
output = render_liquid(output, payload, info)
|
output = render_liquid(output, payload, info)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
output = convert(output)
|
||||||
|
document.content = output
|
||||||
|
|
||||||
if document.place_in_layout?
|
if document.place_in_layout?
|
||||||
place_in_layouts(
|
place_in_layouts(
|
||||||
convert(output),
|
output,
|
||||||
payload,
|
payload,
|
||||||
info
|
info
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
convert(output)
|
output
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue